TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on October 24, 2006, 02:57:32 PM
-
Hi all,
I'm trying to make something like this...
(On_closeDrawing_file)
(Progn
(if (check if this is the last open drawing)
(Make_Qnew_and get the Templatefile)
)
)
)
For the moment...i have this....but not working great.. :|
(setq acadObject (vlax-get-acad-object))
(setq documents (vla-get-Documents acadObject))
(setq count (vla-get-Count documents))
(if (= count 1)
(progn
(command "_close" pause)
(command "_fileopen" (getenv "LastTemplate"))
)
)
(princ)
I think there is no way in LISP...... :oops: