Dimension anchor points
get_dimension_anchorsRetrieve dimension anchor points (hotspots) for Archicad elements, with coordinates, to create associative dimensions. Sort by distance or filter by radius.
Instructions
Lists the points of elements that dimensions can link to (hotspots: wall ends and corners, column corners, opening points, slab vertices, object hotspots...), with coordinates in m. Use a point's x,y with {element, x, y} in create_dimensions to create an associative point. Pass 'near' to sort by distance (and 'radius' to filter). Only anchors with usableAsPoint = true can be linked. Model elements (walls, columns, slabs, openings...) are read on the Floor Plan (plan coordinates) whatever window is active. Returns {elements: [{guid, type, anchorCount, anchors: [{x, y, z, neig, inIndex, line, special, usableAsPoint, source, distance?}]} | {error}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Sort anchors by distance to this point | |
| limit | No | Max anchors per element (default 100) | |
| radius | No | With near: only anchors within this distance (m) | |
| elements | Yes | Element GUIDs |