Changes the visibility of temporary graphics object.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public void SetVisibility( int index, bool visible )
Parameters
- index Int32
- Unique index of the temporary graphics object to be updated.
- visible Boolean
- if true, it will make the temporary graphics object visible. if false, it will make the temporary graphics object invisible.
Exceptions
Exception | Condition |
---|---|
ArgumentException | index is out of range of TemporaryGraphicsManager managed objects, or the indexed object has been removed from the document. |