GetNumberingSchema Method


Numbering Schema Get Numbering Schema(Document, Numbering Schema Type) Method

Note: This API is now obsolete.

Returns an instance of the specified Numbering Schema in the given document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
[ObsoleteAttribute("This method is deprecated in Revit 2027 and may be removed in a later version of Revit. See the overload of this function that uses schema name as input.")]
public static NumberingSchema GetNumberingSchema(
	Document document,
	NumberingSchemaType schemaType
)

Parameters

document Document
A document to get the numbering schema from.
schemaType NumberingSchemaType
The type of a built-in schema to get.

Return Value

NumberingSchema
Instance of the specified schema.
Exceptions
Exception Condition
ArgumentException The given schemaType has an invalid Id.
ArgumentNullException A non-optional argument was null
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 →