(defun c:1()
(setvar “osmode” 0)
(command “RECTANG” “0,0” “1800,1450” “offset” “200” “0,0” “-200,0” “” “xline” “a” “90” “900,0” “” “trim” “1800,1450” “” “900,1550” “900,-100” “”
“LENGTHEN” “de” “300” “900,1400” “900,500” “” “line” “900,0” “900,-200” “” “offset” “800/2” “900,-100” “-100,0” “900,-100” “5000,0” “”
“erase” “900,0” “” “trim” “500,-100” “1300,-100” “” “1200,0” “1200,-200” “”)
(command “stretch” “c” “300,-300” “-300,1800” “” “0,0” “-n,0”)
(command “stretch” “c” “2050,-300” “1550,1800” “” “0,0” “n,0”)
(command “stretch” “c” “10000,1300” “-10000,1800” “” “0,0” “0,500”)
(princ ” = redraw “)
(command “ortho” “on”)
(command “osnap” “int,end,mid,cen,per”)
)
여기서 제가 숫자 2000을 입력하면 2000-1800의 연산을 거쳐 붉은 지점의 n값이 200으로 잡혀 좌표를 설정하게 되는 변수를 주고 싶은데요… 어떻게 하면 될까요??ㅠ
상단의n은 -가 붙은 -n이고 하단은 그냥 n인데…
공유