set_parameter
Set a parameter value on a Revit element with transaction support. If the instance lacks the parameter, it writes to the element type, affecting all instances.
Instructions
Set a parameter value on a Revit element. Opens a Transaction, sets the value, commits.
If the instance has no parameter of that name, the element TYPE is tried. A type write changes every placed instance of that type; the response then contains scope='type', instances_affected and a warning. Warn the user before writing type parameters.
Args: element_id: The integer ID of the Revit element. parameter_name: The exact parameter name as shown in get_element_properties. value: The new value. Numeric values are in Revit internal units (feet); prefer writing text parameters or copy the format from old_value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| element_id | Yes | ||
| parameter_name | Yes |