SetOptionValue Method


Fabrication Part Set Option Value Method

Sets the fabrication option to the specified value.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetOptionValue(
	FabricationOptionDefinition option,
	double newValue
)

Parameters

option FabricationOptionDefinition
The fabrication option to set.
newValue Double
The new value to set, in Revit internal units.
Exceptions
Exception Condition
ArgumentException The fabrication option is not modifiable. -or- The value is invalid if it is beyond the defined limits.
ArgumentNullException A non-optional argument was null
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 →