The Autodesk.Revit.DB.AlphanumericRevisionSettings class represents alphanumeric revision settings in the Revit API.
The following properties are available in the AlphanumericRevisionSettings class:
AlphaSuffixGets or sets the alpha suffix of the revision.
FirstNumericGets or sets the first numeric value of the revision.
NumericSuffixGets or sets the numeric suffix of the revision.
SeparatorGets or sets the separator used between the alpha suffix and the numeric suffix of the revision.
The following method is available in the AlphanumericRevisionSettings class:
Clone()Creates a copy of the AlphanumericRevisionSettings object.
AlphanumericRevisionSettings alphanumericSettings = new AlphanumericRevisionSettings();
alphanumericSettings.AlphaSuffix = "A";
alphanumericSettings.FirstNumeric = 1;
alphanumericSettings.NumericSuffix = "01";
alphanumericSettings.Separator = "-";
RevisionSettings revisionSettings = new RevisionSettings(alphanumericSettings);
// Apply the revision settings to the current document's revision settings
doc.RevisionSettings = revisionSettings;
In this example, we create a new AlphanumericRevisionSettings object and set its properties. We then create a new RevisionSettings object using the alphanumeric revision settings, and apply the revision settings to the current document.
The Autodesk.Revit.DB.AlphanumericRevisionSettings class provides an easy way to represent alphanumeric revision settings in the Revit API. By using this class, developers can programmatically set revision settings in a Revit document.