2022 Class
Changes 4
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
M AddControl(InCanvasControlData, ElementId) int 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
M GetAll() ICollection<int> Returns all temporary graphics object indexes managed by this manager.
M GetTemporaryGraphicsManager(Document) Instance of TemporaryGraphicsManager. Gets a TemporaryGraphicsManager reference of the document.
M RemoveControl(Int32) None Deletes the existing control identified by the unique index.
M SetVisibility(Int32, Boolean) None Changes the visibility of temporary graphics object.
M UpdateControl(Int32, InCanvasControlData) None Updates the in-canvas control identified by the unique index.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.