TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jxphklibin on October 12, 2009, 04:31:58 AM
-
the code is below:
(if (not dwg_reactor_run)(setq dwg_reactor_run(vlr-dwg-reactor nil '((:vlr-saveComplete . save)))))
(defun save(a b)
(Vlax-Invoke-Method (Vlax-Get (Vlax-Get-Acad-Object) 'ActiveDocument) 'Save )
)
what is it works?
any can help? thanks!
-
It is a drawing reactor that will save the ActiveDocument after the save command has completed.
-
I'm not sure the Save method will work. If not, use the SaveAs method, as this works.