hexagon logo

Building an expression for the alignment

1
Parents
  • I'd do something like this...

    DIM ANGL1= 3D ANGLE FROM LINE LIN1 TO LINE LIN2 ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
    AX MEAS
    A 15.0135 ----#----
    ASSIGN/V1=ANGL1.A.MEAS
    IF/V1<15.01350
    ASSIGN/ALIGN_MATH=COS(V1)
    END_IF/
    IF/V1>15.01350
    ASSIGN/ALIGN_MATH=SIN(V1)
    END_IF/
    A1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
    ALIGNMENT/ROTATE_OFFSET,ALIGN_MATH,ABOUT,ZPLUS
    ALIGNMENT/END
    


    Just fix the math syntax (SIN, COS, TAN, ASIN,ACOS,ATAN).

    Then do your distance dimension while recalling alignment A1.
  • Yep, it should DEG2RAD() as SIN, COS, etc.. take in radians as their arguments.
Reply Children
No Data