Jump to content

identify the execution of a command


rodrigo_sjc_sp

Recommended Posts

Is there any way to identify the execution of a command?

And do a procedure to execute a command supplement?

 

A practical example would be:

 

When you call Qsave, run and Qsave

then then display a message on the screen?

 

thank you

Link to comment
Share on other sites

Could used the command "_.undefine" "_qsave" and define what I want within a new procedure qsave, more to lost the functionality is not good to me

 

I need that when a certain command is executed, I can identify that the command

was executed and run some other commands

Link to comment
Share on other sites

Thanks Lee

 

Below the code running in the future for those who want:

(if (null *save-reactor*)
   (setq *save-reactor* (vlr-editor-reactor nil '((:vlr-savecomplete . savedrawing))))
)
(defun savedrawing ( reactor params )
   (Alert "aaaaa")
   (princ)
)

 

 

To learn more events that you can access, follow the link:

http://www.bricsys.com/bricscad/help/en_US/V12/DevRef/source/Lisp_vlr.html

 

the key is to change the 2 items in this command

(setq * save *-reactor (vlr-editor-reactor nil '((: vlr-savecomplete. savedrawing))))

 

vlr-editor-reactor and vlr-savecomplete

 

In my case vlr-editor-reactor to pick stocks editing the file and vlr-savecomplete to run after save the DWG file

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...