Revision.Create
Method
Description:
Creates a new Revision in the project.
Creates a new Revision in the project.
Remarks:
The new Revision will be added at the end of the sequence of existing Revisions.
The new Revision will be added at the end of the sequence of existing Revisions.
Examples
private Revision AddNewRevision(Document document, string description, string issuedBy, string issuedTo, ElementId sequenceNumber, DateTime date)
{
Revision newRevision = Revision.Create(document);
newRevision.Description = description;
newRevision.IssuedBy = issuedBy;
newRevision.IssuedTo = issuedTo;
newRevision.RevisionNumberingSequenceId = sequenceNumber;
newRevision.RevisionDate = date.ToShortDateString();
return newRevision;
}
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document of the new Revision. |
Return Value
Type | Description |
---|---|
Revision | The newly created Revision. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | document is not a project document. |
ArgumentNullException | A non-optional argument was null |