GDL
About building parametric objects with GDL.

number of beamsegments in value array

DNU
Booster

Hi all 

For a label linked to a segmented beam I want to chose a segment in the label settings so the label can give the settings from that segment.
Works perfect except for one part; i can't define the value range for how many segments there are in the beam.

Parameters;
    I_segment (integer)

In the Master script;

    I_maxSegments = 0
    For i = 1 to 7 ! 7 is just a random number to prevent crashes
        IF HASKEY(BEAM_SEGMENT_INFO.segments[i].crossSection.startWidth) then
            I_maxSegments = I_maxSegments+1
        ENDIF
    next i
   PRINT I_maxSegments ! this works perfect
 
In the parameter script;
    VALUES "I_segment" RANGE[1, I_maxSegments]

Values given in the label settings "1 < = value < = 0"

Any Ideas?

AC 14 - 28
WIN 11
GDL
0 REPLIES 0