HasExternallyTaggedReference Method


Direct Shape Type Has Externally Tagged Reference Method

Checks if the externally tagged reference is already present in this DirectShapeType.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool HasExternallyTaggedReference(
	ExternalGeometryId externalId
)

Parameters

externalId ExternalGeometryId
The external ID of the tagged reference to check for.

Return Value

Boolean
True if the DirectShapeType holds a reference with the specified ExternalGeometryId.
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 →