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

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 →