Get element 2D geometry
get_element_2d_geometryRetrieve 2D drawing primitives for Archicad elements in the active window, including lines, arcs, polygons, texts, and fills, to inspect how they appear in plans.
Instructions
The 2D drawing primitives Archicad draws for elements in the active window (floor plan, section, layout...): lines, arcs/circles/ellipses, polylines, polygons (with holes; fills), texts and pictures, with pen numbers and a role for special parts (fill, openingDimension, arrow, drawingBorder). Helps to understand what a plan looks like (e.g. a door's swing, an object's symbol). Output per element: {guid, type, total, counts, extent {xMin,yMin,xMax,yMax}, primitives: [{kind, pen, ...}], truncated?, hotspots?}. Coordinates are [x, y] arrays in meters; angles in degrees; arcs in polygons use {index, angle} like polygon inputs. Hatch pattern lines are only counted unless includeFillPatterns=true. Use summaryOnly for large elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Only list these primitive kinds ('arc' includes circles and ellipses) | |
| elements | Yes | Element GUIDs | |
| maxPoints | No | Max coordinates listed per element. Default 20000 | |
| summaryOnly | No | Only counts and extent, no primitive list. Default false | |
| maxPrimitives | No | Max primitives listed per element (all are counted). Default 300 | |
| includeHotspots | No | Also return the element's hotspots (snap points) as [x, y, z] (m; z of 2D hotspots is 0). Default false | |
| includeFillPatterns | No | Also list the individual hatch pattern lines of fills. Default false |