2026 Class
Changes 7
C

TemporaryGraphicsManager

Description:
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
public class TemporaryGraphicsManager : IDisposable
Name Return Type Description Inherited From
M AddControl(InCanvasControlData, ElementId) Int32 Creates an in-canvas control.
M Clear() None Clear all temporary graphics objects managed by this manager.
M Dispose() None Releases all resources used by the TemporaryGraphicsManager
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetAll() ICollection<Int32> Returns all temporary graphics object indexes managed by this manager.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetTemporaryGraphicsManager(Document) TemporaryGraphicsManager Gets a TemporaryGraphicsManager reference of the document.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M RemoveControl(Int32) None Deletes the existing control identified by the unique index.
M SetTooltip(Int32, String) None Sets the tooltip for the temporary graphics object.
M SetVisibility(Int32, Boolean) None Changes the visibility of temporary graphics object.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
M UpdateControl(Int32, InCanvasControlData) None Updates the in-canvas control identified by the unique index.
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.