2021-01-11 11:09 AM - last edited on 2021-09-14 01:31 PM by Noemi Balogh
IF GLOB_MODPAR_NAME = "delka_3" THEN PARAMETERS delka_2 = delka_3*cos(sklon) PARAMETERS A = delka_3 ENDIF IF GLOB_MODPAR_NAME = "delka_2" THEN PARAMETERS delka_3 = delka_2/cos(sklon) PARAMETERS A = delka_2/cos(sklon) ENDIF
HOTSPOT2 0, 0, unID, delka_2, 1 : unID = unID +1 HOTSPOT2 -1, 0, unID, delka_2, 3 : unID = unID +1 HOTSPOT2 delka_2, 0, unID, delka_2, 2 : unID = unID +1 LINE2 0,0,A*cos(sklon),03D code
HOTSPOT 0, 0, 0, unID, sklon, 6 : unID = unID +1 HOTSPOT A, 0, 0, unID, sklon, 4 : unID = unID +1 HOTSPOT A*cos(sklon), 0, A*sin(sklon), unID, sklon, 5 : unID = unID +1 LIN_ 0,0,0,A,0,0 ROTy -sklon HOTSPOT 0, 0, 0, unID, delka_3, 1 : unID = unID +1 HOTSPOT -1, 0, 0, unID, delka_3, 3 : unID = unID +1 HOTSPOT delka_3, 0, 0, unID, delka_3, 2 : unID = unID +1 LIN_ 0,0,0,A,0,0
2021-01-11 10:37 PM
if glob_modpar_name = "delka_2" then parameters delka_3 = delka_2/cos(sklon) parameters A = delka_2/cos(sklon) else parameters delka_2 = delka_3*cos(sklon) parameters A = delka_3 endifthis way delka_2 always references the delka_3 and sklon values.
2021-01-11 10:38 PM
if glob_modpar_name = "delka_2" then delka_3 = delka_2/cos(sklon) parameters delka_3 = delka_3 A = delka_2/cos(sklon) parameters A = A else delka_2 = delka_3*cos(sklon) parameters delka_2 = delka_2 A = delka_3 parameters A = A endif
2021-01-11 10:40 PM
delka_2 = delka_3*cos(sklon) A = delka_3 parameters delka_2 = delka_2, A = A if glob_modpar_name = "delka_2" then delka_3 = delka_2/cos(sklon) parameters delka_3 = delka_3 endif