License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

GDL
About building parametric objects with GDL.

Is there any example of using the parameter BEAM_SEGMENT_INFO?

taigd
Contributor

I have trouble using this parameter. 😟 Maybe there is a simple executable example so I can understand how to use it. Thank you. 

3 REPLIES 3
Jochen Suehlo
Moderator

Try to find the macro object "label_content_macro.gsm". There this Global is used.

Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Thanks for the info, I'll give it a try。😀

 

taigd
Contributor

It works...

--------------------------------------------------------------------------------------------------------------------------------------------------------

IF GLOB_ELEM_TYPE = 12 or GLOB_ELEM_TYPE = 28 THEN

     IF BEAM_SEGMENT_INFO.segments[1].crossSection.type= 1 THEN text2 0, 0, "BEAM_RECTANGULAR"
     IF BEAM_SEGMENT_INFO.segments[1].crossSection.type= 2 THEN text2 0, 0, "BEAM_ROUND"
     IF BEAM_SEGMENT_INFO.segments[1].crossSection.type= 3 THEN text2 0, 0, "BEAM_COMPLEXCCC"
ENDIF

--------------------------------------------------------------------------------------------------------------------------------------------------------

taigd_1-1719801672109.png