Author Topic: What is this works?  (Read 1360 times)

0 Members and 1 Guest are viewing this topic.

jxphklibin

  • Guest
What is this works?
« 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!

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: What is this works?
« Reply #1 on: October 12, 2009, 07:59:13 AM »
It is a drawing reactor that will save the ActiveDocument after the save command has completed.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: What is this works?
« Reply #2 on: October 12, 2009, 11:13:33 AM »
I'm not sure the Save method will work.  If not, use the SaveAs method, as this works.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.