GetActiveDesignOptionId Method


Gets the active design option id for the current design option set.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2011

Syntax

C#
public static ElementId GetActiveDesignOptionId(
	Document document
)
Visual Basic
Public Shared Function GetActiveDesignOptionId ( _
	document As Document _
) As ElementId
Visual C++
public:
static ElementId^ GetActiveDesignOptionId(
	Document^ document
)

Parameters

document
Type: Autodesk.Revit.DBDocument
The document.

Return Value

The active design option id. It can be invalid id if there is no active design option in the model.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →