TemporaryGraphicsManager Class

A class that provides functionality to create temporary graphics in a Revit model.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBTemporaryGraphicsManager

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TemporaryGraphicsManager : IDisposable

The TemporaryGraphicsManager type exposes the following members.

Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodAddControl Creates an in-canvas control.
Public methodClear Clear all temporary graphics objects managed by this manager.
Public methodDisposeReleases all resources used by the TemporaryGraphicsManager
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetAll Returns all temporary graphics object indexes managed by this manager.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetTemporaryGraphicsManager Gets a TemporaryGraphicsManager reference of the document.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRemoveControl Deletes the existing control identified by the unique index.
Public methodSetVisibility Changes the visibility of temporary graphics object.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateControl Updates the in-canvas control identified by the unique index.
Top
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.

See Also