Get selection
get_selectionRetrieve details of currently selected Archicad elements, including type, count, and properties. Use when referring to 'the selected elements' or 'this'.
Instructions
Returns what is currently selected in Archicad: {selectionType: None|Elements|MarqueePolygon|MarqueeBox|MarqueeRotatedBox, total, editableCount, elements: [{guid, type, storyIndex, layer, elementId, partial?}], marquee?: {box, polygon, boxRotationAngle, multiStory}}. Use it when the user refers to 'the selected elements' or 'this'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many. Default 1000 | |
| offset | No | Skip this many selected elements. Default 0 | |
| onlyEditable | No | Only editable selected elements. Default false | |
| includePartial | No | Include partially selected elements (e.g. with the marquee). Default false | |
| marqueeRelation | No | When a marquee is active: which elements count as selected relative to it. Default InsidePartially | |
| includeElementId | No | Include Element IDs. Default true |