Unexpected Cross Section with Coordinate Offset YM

I tried to make a rectangle cross section with a shift = 100 in the local Y direction as below

But I get unexpected results using YM=100.
Below is my results

  1. First, I create a rectangle without any shift, the result is correct.

+PROG AQUA
HEAD
CTRL FACE NEG
UNIT TYPE 5 $ MM
NORM GB 50010
STEE NO TYPE CLAS FY FT
1 S Q235 215 360
SECT 1
TVAR NAME VAL
B 1000
H 1000
POLY TYPE MNO YM
O 1 0
VERT NO Y Z REFP
101 0 0
102 ‘=B’ 0 101
103 0 ‘=H’ 102
104 ‘=-B’ 0 103
END

  1. I create a rectangle with YM=100, the result is incorrect.

+PROG AQUA
HEAD
CTRL FACE NEG
UNIT TYPE 5 $ MM
NORM GB 50010
STEE NO TYPE CLAS FY FT
1 S Q235 215 360
SECT 1
TVAR NAME VAL
B 1000
H 1000
POLY TYPE MNO YM
O 1 100
VERT NO Y Z REFP
101 0 0
102 ‘=B’ 0 101
103 0 ‘=H’ 102
104 ‘=-B’ 0 103
END

  1. I create a rectangle with YM=100, and use Let instead of TVAR, the result is incorrect and is different from that in the 2nd case.

+PROG AQUA
HEAD
CTRL FACE NEG
UNIT TYPE 5 $ MM
NORM GB 50010
STEE NO TYPE CLAS FY FT
1 S Q235 215 360
SECT 1
LET#B 1000
LET#H 1000
POLY TYPE MNO YM
O 1 100
VERT NO Y Z REFP
101 0 0
102 #B 0 101
103 0 #H 102
104 -#B 0 103
END

Question: How to get the correct result using YM, TVAR or LET variavle?

Hello,

As I wrote in a previous post, the offset YM is added to any (not to a formula) Y-value of the command VERT.
So I don’t understand why you are trying to work with YM. This command is not useful in your described case. Just shift the first point (NO 100) 100 mm to the right.

POLY TYPE MNO  YM
     O    1    0
VERT   NO    Y Z  REFP
      101  100 0
      102   #B 0  101
      103   #B #H 101
      104    0 #H 101

A further tip:
Do not reverence on multiple points in a row. This could slow down the calculation process. Try to reverence the points on a single point (e.g. NO 101).

POLY TYPE MNO  YM
     O    1   100
VERT    NO    Y       Z          REFP
       101    0       0
       102 '=#B,1000' 0          101
       103 '=#B,1000' '=#H,1000' 101
       104 -100       '=#H,1000' 101   

Best regards
Frederik Höller
Your SOFiSTiK Support Team