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-27 . 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