Not in relation to the outer edge, but we have LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D in project coordinates. It is available since AC23, but it will first appear in the next version's manual.
Only valid when the associated element is a wall. Not valid in 3D and UI script.
.referenceLine2D{}: (dictionary) 2D reference line in the project coordinate system. Basic walls with Polygonal Geometry Method can have multiple edges. The same data format as PolyOperations polylines, it can be sent directly to "StoreDictPolyline".
.referenceLine2D.isClosed: (boolean) 1 - closed polyline, 0 - open polyline (the last point given as an extra edge). Reference lines are always open polylines.
.referenceLine2D.contour{}: (dictionary) contains data of the polyline
.referenceLine2D.contour.edges
: (array) contains an embedded dictionary for each edge of the polyline.
.referenceLine2D.contour.edges.type: (integer) 0 - straight, 1 - curved (circular arc)
.referenceLine2D.contour.edges.begPoint{}: (dictionary) an embedded dictionary for the 2D coordinates of the beginning point of the edge
.referenceLine2D.contour.edges.begPoint.x: (float)
.referenceLine2D.contour.edges.begPoint.y: (float)
.referenceLine2D.contour.edges.arcAngle: (angle) central angle of the edge curve, positive counter-clockwise, negative clockwise (not set for straight edges)
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest