GetNumbers Method


Numbering Schema Get Numbers Method

Returns all numbers currently used in the given numbering sequence

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<IntegerRange> GetNumbers(
	string partition
)

Parameters

partition String
Name of the partition that identifies the sequence. The sequence must exist.

Return Value

IList IntegerRange
A collection of integer ranges
Exceptions
Exception Condition
ArgumentException The sequence partition does not exist in the schema.
ArgumentNullException A non-optional argument was null
Remarks

Numbers are returned as a collection of ranges, where each range is a pair of two integer values, Low and High. As long as there is no gap currently in the sequence, there will be only one range.

See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →