HasSchema Method


Extended Properties Link Data Has Schema Method

Queries whether the schema already exists in this data.

Namespace: Autodesk.Revit.DB.ExternalData
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public bool HasSchema(
	ForgeTypeId schemaId
)

Parameters

schemaId ForgeTypeId
Identifier of the schema to check.

Return Value

Boolean
True if the schema already exists in this data, false otherwise.
Exceptions
Exception Condition
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 →