Checks whether the provided Element ID corresponds to a DirectContext3D handle type element.
Namespace: Autodesk.Revit.DB.DirectContext3DAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2018
Syntax
| C# | 
|---|
public static bool IsADirectContext3DHandleType( Document aDocument, ElementId elementId )  | 
| Visual Basic | 
|---|
Public Shared Function IsADirectContext3DHandleType ( _ aDocument As Document, _ elementId As ElementId _ ) As Boolean  | 
| Visual C++ | 
|---|
public: static bool IsADirectContext3DHandleType( Document^ aDocument, ElementId^ elementId )  | 
Parameters
- aDocument
 - Type: Autodesk.Revit.DB..::..Document
The document. 
- elementId
 - Type: Autodesk.Revit.DB..::..ElementId
The ID of the element to check. 
Return Value
True, if the element is a valid DirectContext3D handle type, false otherwise.
Remarks
DirectContext3D handle types are DirectShapeTypes.
Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | aDocument is not a project document. -or- elementId is not a valid Element identifier. | 
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |