License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
GDL
About building parametric objects with GDL.

Wall Reference Line Global for Labels?

Jochen Suehlo
Moderator
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.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . 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

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!