IsADirectContext3DHandleInstance Method


Direct Context 3DDocument Utils Is ADirect Context 3DHandle Instance Method

Checks whether the provided Element ID corresponds to a DirectContext3D handle instance element.

Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsADirectContext3DHandleInstance(
	Document aDocument,
	ElementId elementId
)

Parameters

aDocument Document
The document.
elementId ElementId
The ID of the element to check.

Return Value

Boolean
True, if the element is a valid DirectContext3D handle instance, false otherwise.
Exceptions
Exception Condition
ArgumentException aDocument is not a project document. -or- elementId is not a valid Element identifier.
ArgumentNullException A non-optional argument was null
Remarks

DirectContext3D handle instances are DirectShapes.

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 →