RVTDocs.com

RemoveGaps

Method
Description:
Removes gaps, if any, in a numbering sequence
Remarks:
Gaps are removed by shifting numbers above each gap down by the amount of numbers skipped in the gap. The lowest number in the sequence will remain unchanged.
Syntax
public void RemoveGaps(
	string partition
)
Parameters
Parameter Type Description
partition System.String Name of the partition that identifies the sequence. The sequence must exist.
Return Value
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentException The sequence partition does not exist in the schema.
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions.InvalidOperationException Either the schema or its document cannot be modified at present.