Lock elements
lock_elementsPrevents Archicad elements from being edited, moved, or deleted until unlocked, ensuring project geometry stays protected during edits.
Instructions
Locks elements (Edit > Locking > Lock): locked elements cannot be edited, moved or deleted until unlocked (unlock_elements). Returns {results: [{guid, locked: true} | {guid, error}], warnings?}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes | Elements to edit: GUID strings (or {guid}) of any element type, e.g. from get_element_details / element search tools. A group GUID stands for all elements of that group. | |
| includeGroupMembers | No | Default false: ONLY the listed elements are affected even when they belong to groups (Suspend Groups is switched on for the duration of the call and restored afterwards). true: all members of their (top-level) groups are affected as well. |