Message 1 of 4
Reactor for open and close dwg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear forum members,
I have an reactor that will fire an lsp when user presses SAVE or QSAVE
I googles unsuccessfully my ass off to find a way to change this one into endopen en close of dwg
Instead of running up the lsp when a user presses save I want it to run when an dwg is opened or when it will close
This is the code now
(vlr-command-reactor
nil
'((:vlr-commandEnded . endCommand))
)
(defun endCommand (calling-reactor endcommandInfo / thecommandend)
(setq thecommandend (nth 0 endcommandInfo))
(cond
((= thecommandend "QSAVE") (qs:backup))
((= thecommandend "SAVE") (qs:backup))
)
)
Best regards
If this was of any help please kudo and/or Accept as Solution
Kind Regards
Kind Regards