cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.
SOLVED!

Cannot figure out how to get wall radius for label

Podolsky
Ace
I need to script a label, that would know radius (also coordinates of radius centre) of the wall. I looked how window knows about it - for that there is special global variable WIDO_ORIG_DIST. But wall's global variables do not have any information about it. Any ideas? Or it's just impossible?
21 REPLIES 21
Anonymous
Not applicable
Thanks Dominic.
I see that you properly defined the dictionary. No errors.
The test I did gave me some errors probably due to the lack of dict definition.
Cheers,
Peter Baksa
Graphisoft
Graphisoft
You can use .referenceLine2D.contour.edges.type to determine whether it is an arc or line.
Multiple edges can exist on polygonal-shape walls.
Dominic wrote:
Here's my quick & dirty solution for wall radius:

if haskey(LABEL_ASSOC_ELEM_GEOMETRY.referenceLine2D.contour.edges[1].ArcAngle) then
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest