SetSequence Method


Sets the sequence of strings to be used as numbers for revisions with the Alphanumeric RevisionNumberType.

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

Syntax

C#
public void SetSequence(
	IList<string> sequence
)
Visual Basic
Public Sub SetSequence ( _
	sequence As IList(Of String) _
)
Visual C++
public:
void SetSequence(
	IList<String^>^ sequence
)

Parameters

sequence
Type: System.Collections.GenericIListString
The sequence. The sequence strings cannot contain commas.

Remarks

If there are more alphanumeric revisions than there are strings in the sequence, subsequent alphanumeric revisions will be assigned duplicated characters. For example, if the sequence provided were ["X", "Y"], the first alphanumeric revision would be shown as "X", the second as "Y", the third as "XX", then "YY", "XXX", etc.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Input sequence contains invalid entries.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also