안녕하세요>
만들고자하는 파일을 검색하고 없으면 주어진 파일을 생성하려는데
잘안돼네요,
그리고 실행시키면 변수 cIso, Cf 도 그냥 다시 nil 로 나타납니다.
한수 지도 바랍니다.
좋은 하루 되세요.
( defun dwg_strt ()
(setq cIso “c:\temp\” cf “test”)
(if (findfile (strcat cIso cf “.dwg”))
(progn
(princ (strcat “n” “test 1”))
(command “open” (strcat cIso cF “”))
)
(progn
(setvar “filedia” 0)
(setq cIso “c:\temp\” cf “test”) ; 요거도 나중엔 Nil 로 바뀝니다.
(command “new” “.” “”)
(command “save” (strcat cIso cF) “” ) ; 이것도 실행이 안되고요… ㅠ,ㅠ,ㅠ
)
)
)