IsWorksetVisible Method


View Is Workset Visible Method

Indicates whether the workset is visible in this view.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool IsWorksetVisible(
	WorksetId worksetId
)

Parameters

worksetId WorksetId
Id of the workset.

Return Value

Boolean
Whether the workset is visible.
Exceptions
Exception Condition
ArgumentException There is no workset with this Id in the document associated with this view.
ArgumentNullException A non-optional argument was null
Remarks
It will take into account whether the workset is opened or closed.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →