Zoom
zoomControls the active Archicad window's view: fit the whole drawing, focus on elements by GUID or selection, define a rectangular area, scale in/out, or undo changes.
Instructions
Zooms the active window: fit (whole drawing/model), box (2D rectangle in m), elements (GUIDs), selection, in/out by a factor, previous (undo zoom) or redraw. margin adds space around 2D zooms. Returns {mode, window: {..., zoom}}. Tip: zoom {mode:'elements', elements, margin: 0.2} and then capture_view to inspect specific elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | mode 'box': area to show (m) | |
| mode | No | fit = fit the whole drawing/model in the window (default; 'zoom extents'), box = show the rectangle 'box' (2D windows), elements = zoom to 'elements', selection = zoom to the selected elements, in/out = zoom by 'factor', previous = undo zoom 'steps', redraw = just redraw | |
| steps | No | mode 'previous': how many zoom steps to go back (default 1) | |
| center | No | mode 'in'/'out' in 2D: zoom around this point (default: window center) | |
| factor | No | mode 'in'/'out': zoom factor (default 2) | |
| margin | No | 2D: extra space around fit/box/elements/selection as a fraction of the area (e.g. 0.1 = 10% on each side) | |
| elements | No | mode 'elements': elements to zoom to |