modify_elements
Set instance parameters on existing Revit elements by ID in one transaction, with per-element success and failure reporting.
Instructions
Set instance parameters on existing elements, by element id.
Applies the same parameter values to every element in element_ids, in one transaction. Returns which parameters were set and which failed, per element, so a partial success is visible rather than silent.
Get element ids from get_selected_elements or get_current_view_elements first. Use list_category_parameters to find out what parameter names a category actually has.
Lengths are in Revit internal units (decimal feet), not the units shown in the UI. Yes/No parameters accept true/false.
Does NOT: create elements, change an element's type, or edit type parameters (these are instance parameters only). Read-only and computed parameters are reported as failures rather than being forced.
Args: element_ids: Element ids to modify. Must be non-empty. parameters: Parameter name to value, e.g. {"Mark": "A1", "Comments": "checked"}. Must be non-empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes | ||
| element_ids | Yes |