TemporaryGraphicsManager
Description:
A class that provides functionality to create temporary graphics in a Revit model.
A class that provides functionality to create temporary graphics in a Revit model.
Remarks:
The graphics created by this class are temporary or transient. They are not subject to undo and are not saved. It's caller's responsiblity to manage their lifetime, creation and destruction, though Revit will destroy all of them when closing the model.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.TemporaryGraphicsManager
System.Object
Autodesk.Revit.DB.TemporaryGraphicsManager
public class TemporaryGraphicsManager : IDisposable
| Name | Return Type | Description |
|---|---|---|
| AddControl(InCanvasControlData, ElementId) | int | Creates an in-canvas control. |
| Clear() | None | Clear all temporary graphics objects managed by this manager. |
| Dispose() | None | Releases all resources used by the |
| GetAll() | ICollection<int> | Returns all temporary graphics object indexes managed by this manager. |
| GetTemporaryGraphicsManager(Document) | Instance of TemporaryGraphicsManager. | Gets a TemporaryGraphicsManager reference of the document. |
| RemoveControl(Int32) | None | Deletes the existing control identified by the unique index. |
| SetVisibility(Int32, Boolean) | None | Changes the visibility of temporary graphics object. |
| UpdateControl(Int32, InCanvasControlData) | None | Updates the in-canvas control identified by the unique index. |
| Name | Return Type | Description |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |