Revit 2025.3 API
ViewIs |
Identifies if the input element is visible for the temporary view mode for this view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool IsElementVisibleInTemporaryViewMode( TemporaryViewMode mode, ElementId id )
Public Function IsElementVisibleInTemporaryViewMode ( mode As TemporaryViewMode, id As ElementId ) As Boolean
public: bool IsElementVisibleInTemporaryViewMode( TemporaryViewMode mode, ElementId^ id )
member IsElementVisibleInTemporaryViewMode : mode : TemporaryViewMode * id : ElementId -> bool
Parameters
- mode TemporaryViewMode
- The temporary view mode. Only TemporaryHideIsolate and AnalyticalModel modes are supported by this option. Other modes will result in an exception.
- id ElementId
- The element id.
Return Value
BooleanTrue if the element is visible, false if the element is hidden in the view mode.

Exception | Condition |
---|---|
ArgumentException | This view mode is not supported for checking element visibility. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
See Also