hexagon logo

Why can't you write programs like this? Do you understand?

The construction feature cannot be written as [1.. N],

The results are marked in red。

Software version: 2024.1

Parents
  • Hello

    I tested it with 2023.2 and surprisingly it works well.

                WORKPLANE/YMINUS
                ASSIGN/V_COUNT=8
                MOVE/CLEARPLANE
    V1         =LOOP/START,ID=YES,NUMBER=V_COUNT,START=1,SKIP=,
                  OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=45
    PNT1         =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                  THEO/<0,0,50>,<0,-1,0>
                  ACTL/<0,0,50>,<0,-1,0>
                  TARG/<0,0,50>,<0,-1,0>
                  SNAP=NO
                  SHOW FEATURE PARAMETERS=NO
                  SHOW CONTACT PARAMETERS=NO
                LOOP/END
    EB1        =FEAT/PLANE,CARTESIAN,OUTLINE,NO,LEAST_SQR
                THEO/<4.419,0,1.831>,<0,-1,0>
                ACTL/<0,0,0>,<0,-1,0>
                CONSTR/PLANE,BF,PNT1[1..V_COUNT],,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,WAVELENGTH=0

    the question is about a loop index and not about the points from the element, hence without .hit
    I can only assume that ..12 is the wrong number and pkt1[12] does not exist

    or buggy in 2024.1

Reply
  • Hello

    I tested it with 2023.2 and surprisingly it works well.

                WORKPLANE/YMINUS
                ASSIGN/V_COUNT=8
                MOVE/CLEARPLANE
    V1         =LOOP/START,ID=YES,NUMBER=V_COUNT,START=1,SKIP=,
                  OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=45
    PNT1         =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                  THEO/<0,0,50>,<0,-1,0>
                  ACTL/<0,0,50>,<0,-1,0>
                  TARG/<0,0,50>,<0,-1,0>
                  SNAP=NO
                  SHOW FEATURE PARAMETERS=NO
                  SHOW CONTACT PARAMETERS=NO
                LOOP/END
    EB1        =FEAT/PLANE,CARTESIAN,OUTLINE,NO,LEAST_SQR
                THEO/<4.419,0,1.831>,<0,-1,0>
                ACTL/<0,0,0>,<0,-1,0>
                CONSTR/PLANE,BF,PNT1[1..V_COUNT],,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,WAVELENGTH=0

    the question is about a loop index and not about the points from the element, hence without .hit
    I can only assume that ..12 is the wrong number and pkt1[12] does not exist

    or buggy in 2024.1

Children