RevisionNumber Property


The Revision number of this revision.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2015

Syntax

C#
public string RevisionNumber { get; }
Visual Basic
Public ReadOnly Property RevisionNumber As String
	Get
Visual C++
public:
property String^ RevisionNumber {
	String^ get ();
}

Remarks

Note that this field is only available if the RevisionSettings are set to number revisions PerProject. When Revisions are numbered PerSheet, a given Revision may display a different RevisionNumber on each sheet. In this case, the revision number can be obtained by calling [!:Autodesk::Revit::DB::ViewSheet::GetRevisionNumberOnSheet()].

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException This operation is not valid for when the revision numbering is per sheet.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →