Hello I have written a LISP routine to help with file preparation for this certain type of software. I have to go through several commands to clean the file, then I need to export it to a ASCII R12 DXF(by selecting all objects upon save). Long story of why this works, but it does. The issue is when I try to "saveas" in my routine I don't see an exported DXF on my hard drive, but if I do it manually without the LISP it asks me if i want to overwrite the file as if it is on my hard drive. Any thoughts or advice on how I can change my LISP, or any other thoughts that might be causing this problem? Thanks in advance. File is attached.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
I did double check that, yes show all files is on.
Untested...
(defun c:demo () (command "plan" "world") (command "-layer" "on" "*" "") (command "-layer" "thaw" "*" "") (command "chprop" "all" "" "layer" "0" "") (command "-layer" "set" "0" "") (command "-purge" "all" "*" "no") (command "filedia" "0") (if (findfile "D:\\rename.dxf") (command "saveas" "dxf" "v" "r12" "o" "all" "" "" "D:\\rename.dxf" "Y") (command "saveas" "dxf" "v" "r12" "o" "all" "" "" "D:\\rename.dxf") ) (command "filedia" "1") (princ) )
Henrique
Henrique that worked great! Thank You!