TemporaryGraphicsManager
A class that provides functionality to create temporary graphics in a Revit model.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.TemporaryGraphicsManager
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TemporaryGraphicsManager : IDisposableThe TemporaryGraphicsManager type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Methods
Name
Description
Public Method
AddControl
Creates an in-canvas control.
Public Method
Clear
Clear all temporary graphics objects managed by this manager.
Public Method
Dispose
Releases all resources used by the TemporaryGraphicsManager
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetAll
Returns all temporary graphics object indexes managed by this manager.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
Static Member
GetTemporaryGraphicsManager
Gets a TemporaryGraphicsManager reference of the document.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
RemoveControl
Deletes the existing control identified by the unique index.
Public Method
SetVisibility
Changes the visibility of temporary graphics object.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Public Method
UpdateControl
Updates the in-canvas control identified by the unique index.
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.