Lee Mac 发表于 2022-7-6 11:55:03

I find its better to have a toggle/off function with a reactor, with your original function, there was no inherent way to stop the reactor functioning.

chulse 发表于 2022-7-6 11:56:43

Thanks for the education guys!

Lee Mac 发表于 2022-7-6 12:00:34

You're welcome, does my code function as expected?

alanjt 发表于 2022-7-6 12:04:53

 
ditto 90% of the time.

chulse 发表于 2022-7-6 12:06:42

It's ALIVE!!! It works. Thanks
 
However, it is not activated by default - how would I make it activate automatically by default?

Lee Mac 发表于 2022-7-6 12:10:12

Put
 

(CloseReactor)
 
In your ACADDOC.lsp (make sure the LISP is loaded also).

alanjt 发表于 2022-7-6 12:14:50

 
DANGEROUS!!!
 
:cry:
 
This is something I would recommend you have to turn on.

Lee Mac 发表于 2022-7-6 12:18:06

 
Cary likes to live life on the edge

alanjt 发表于 2022-7-6 12:19:28

 
I seriously do not recommend you have this set to auto on. If you open a file, just to take something from it, print, etc. you will have to remember to turn the reactor off; otherwise, you will be changing the edit date of the file. This may not be a big deal to you, but you really should be aware it.

chulse 发表于 2022-7-6 12:23:01

Working perfectly, thanks guys!
页: 1 [2]
查看完整版本: Reactor for dwg close - how to