NumericRevisionSettings Constructor (Int32, String, String)


Constructs a NumericRevisionSettings object.

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

Syntax

C#
public NumericRevisionSettings(
	int startNumber,
	string prefix,
	string suffix
)
Visual Basic
Public Sub New ( _
	startNumber As Integer, _
	prefix As String, _
	suffix As String _
)
Visual C++
public:
NumericRevisionSettings(
	int startNumber, 
	String^ prefix, 
	String^ suffix
)

Parameters

startNumber
Type: SystemInt32
The start number for the sequence.
prefix
Type: SystemString
The prefix string for each revision number in the sequence.
suffix
Type: SystemString
The suffix string for each revision number in the sequence.

Remarks

The starting number parameter accepts any non-negative integer, and the prefix and suffix strings are allowed to be empty.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for startNumber is negative.

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 →