Revision.ReorderRevisionSequence
Method
Description:
Reorders the sequence of Revisions in the project.
Reorders the sequence of Revisions in the project.
Remarks:
This method allows the caller to change the sequence of the Revisions within the project by specifying the new sequence. The specified sequence must include every Revision in the project exactly once.
This method allows the caller to change the sequence of the Revisions within the project by specifying the new sequence. The specified sequence must include every Revision in the project exactly once.
Note that changing the sequence of Revisions can change the SequenceNumber and RevisionNumber of Revisions that have already been issued.
Syntax
public static void ReorderRevisionSequence(
Document document,
IList<ElementId> newSequence
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document in which the Revision sequence should be reordered. |
newSequence | IList | The new sequence of Revisions. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | newSequence does not contain every Revision exactly once. |
ArgumentNullException | A non-optional argument was null |