Hello I'm trying to write a code see if the drawing is 2D or 3D. I am not a programmer, but in the process of learning as i go.
here is a sample of my code.
(defun c:IS2D ()
(setq dr (getvar "dwgname"))
(setq a (getvar "EXTMAX"))
(setq pt1 (caddr a))
(if (= pt1 0.0)
(command "-_saveas" "dwg" "2010" (strcat "H:\\"dr_2D))
(command "-_saveas" "dwg" "2010" (strcat "H:\\"dr_3D))
)
(princ)
)
Any help would be appreciated.
Solved! Go to Solution.
Solved by Jonathan3891. Go to Solution.
Thanks DSM_dude!
Its working!!! this is going to save me some good time!