Set drawing order
set_draw_orderChange the 2D stacking order of Archicad plan elements, making fills sit behind lines or adjusting cover order via relative actions or absolute levels 1–14.
Instructions
Changes the 2D stacking (display) order of elements on the plan (Edit > Display Order): which element covers which (e.g. a fill behind lines). Give action ('BringToFront' | 'BringForward' | 'SendBackward' | 'SendToBack' | 'Reset' = default order of the type; steps repeats BringForward/SendBackward) OR a target level 1 (bottom) .. 14 (top). Type defaults: drawings 5, fills/zones 6, walls/slabs/roofs/columns/doors/windows 7, objects/lamps 8, lines/arcs/polylines/beams 9, texts/labels/dimensions 10. Windows/doors cannot go below their host. Returns {results: [{guid, drawIndexBefore, drawIndex, warning?}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Absolute target drawing order level 1..14 (give this OR action) | |
| steps | No | Repeat BringForward/SendBackward this many levels (default 1) | |
| action | No | Relative change (give this OR level) | |
| 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. |