Share

View.IsElementVisibleInTemporaryViewMode Method

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: 26.1.0.0 (26.1.0.34)

Syntax

C#

public bool IsElementVisibleInTemporaryViewMode(
	TemporaryViewMode mode,
	ElementId id
)

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

Boolean
True if the element is visible, false if the element is hidden in the view mode.

Exceptions

ExceptionCondition
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

Reference

Was this information helpful?