Checks whether the provided Element ID corresponds to a DirectContext3D handle instance element. 
   Namespace:   Autodesk.Revit.DB.DirectContext3D  
  Assembly:   RevitAPI  (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0) 
  Since:  2018 
Syntax
| C# | 
|---|
|  | 
| Visual Basic | 
|---|
|  | 
| Visual C++ | 
|---|
|  | 
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 instance, false otherwise.Remarks
DirectContext3D handle instances are DirectShapes.
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 |