Alexander V. Koshman
Usenet Archive
- Joined
- Dec 16, 2003
- Messages
- 61
- Reaction score
- 0
Hello to every living soul here!
I would ask how I must clean up Command reactors
in every particular .lsp file correctly?
Example:
1. Create the action reactor:
(vl-load-com)
(setq command1-start-rr (VLR-Command-reactor nil '(
VLR-commandWillStart .
command1-start))))
2. Make the action function:
(defun command1-start ( calling-reactor commandInfo / ) ...
) ; - 'defun'
3. Create the cleaning reactor:
(setq close-clean-rr (VLR-DWG-Reactor nil '(
vlr-BeginClose .
close-clean))))
4. Question: What I have to write in cleaning function?
(defun close-clean
(vlr-remove command1-start-rr)
(setq command1-start-rr nil)
(setq command1-start nil)
) ; - 'defun'
And how about the Cleaning reactor itself?
Do I have to clean it too???
Thank you in advance!
I would ask how I must clean up Command reactors
in every particular .lsp file correctly?
Example:
1. Create the action reactor:
(vl-load-com)
(setq command1-start-rr (VLR-Command-reactor nil '(
command1-start))))
2. Make the action function:
(defun command1-start ( calling-reactor commandInfo / ) ...
) ; - 'defun'
3. Create the cleaning reactor:
(setq close-clean-rr (VLR-DWG-Reactor nil '(
close-clean))))
4. Question: What I have to write in cleaning function?
(defun close-clean
(vlr-remove command1-start-rr)
(setq command1-start-rr nil)
(setq command1-start nil)
) ; - 'defun'
And how about the Cleaning reactor itself?
Do I have to clean it too???
Thank you in advance!