Place views on layouts
place_drawingPlaces views or databases as drawings on Archicad layouts in a single batch undo step. Specify source, position, scale, and other options per drawing.
Instructions
Places views as drawings on layouts (one undo step for the batch). Each item: layout + source ('view' navigator guid — preferably a View Map view from get_databases {includeViews: true} — or 'database', e.g. a section databaseRef, or 'FloorPlan' + storyIndex), then optional position (paper meters from the sheet's bottom-left corner, default the sheet center), anchor, scale (100 = 1:100) or ratio, angle, name / number, crop frame, title, border, pen set, update mode, layer. The first target layout is brought to the front unless restoreWindow. Returns [{guid, layout, source, drawing: {position, bounds, scale, status ...}} | {error}] in input order. Create layouts with create_layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drawings | Yes | Drawings to place | |
| undoName | No | Name of the undo step | |
| restoreWindow | No | Return to the previous front window afterwards (default false: the layout stays in front) |