Set selection
set_selectionChanges the active Archicad selection by setting, adding, removing, or clearing elements to prepare selection-based commands and show intended elements.
Instructions
Changes the Archicad selection (shows the user which elements you mean, or prepares a selection-based command). mode 'set' replaces the selection (no elements = clear), 'add' adds, 'remove' deselects the given elements, 'clear' deselects everything. Elements on hidden/locked layers or on another story than the active floor plan may fail — see 'failed'. Output: {mode, requested, applied, failed: [{guid, error}], selectionCount}. Selection changes are not undo steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default 'set' | |
| elements | No | Elements to (de)select; required for 'add' and 'remove' |