BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.

Wall Reference Line Global for Labels?

Joachim Suehlo
Advisor
Is there a Wall Reference Line Global for Labels or a REQUEST?
I need the position of the Wall Reference Line in relation to the outer edge of the wall, requested from a label that is connected to the wall, see image.
Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de
1 REPLY 1
Peter Baksa
Graphisoft
Graphisoft
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
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!