Direct |
The DirectContext3DDocumentUtils type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GetDirectContext3DHandleInstances | Returns all DirectContext3D handle instances of the given category in the document. |
![]() ![]() | GetDirectContext3DHandleTypes | Returns all DirectContext3D handle types of the given category in the document. |
![]() ![]() | IsADirectContext3DHandleCategory | Checks whether the provided category ID is one of the categories used by DirectContext3D handle elements. |
![]() ![]() | IsADirectContext3DHandleInstance | Checks whether the provided Element ID corresponds to a DirectContext3D handle instance element. |
![]() ![]() | IsADirectContext3DHandleType | Checks whether the provided Element ID corresponds to a DirectContext3D handle type element. |
DirectContext3D graphics can be displayed without storing the graphics in elements. However, the reference to the externally generated graphics will not persist beyond the current session, and there will be no capabilities for the user to select and interact with the graphics. The utility methods in this class support creation and updating of DirectContext3D handle and handle instance elements (which for this release are [!:Autodesk::Revit::DB::DirectShapeType] and [!:Autodesk::Revit::DB::DirectShape] instances, however this may not always be the case). The capabilities provided by these handle elements include:
The type and instance relationship between DirectContext3D handles and handle instances allows one DirectContext3D server to act as the provider of one set of graphics (the type) that the API displays in multiple locations, as determined by the handle instances.
The handle element will be associated to a specified category. The only currently valid category is OST_Coordination_Model.
The application is required to update the handle type element using [!:UpdateDirectContext3DHandleType()] whenever the source data changes. It also is required that the application update the handle during initial load of the document containing this element.