How to Cancel the command in callback functions?

Alexander V. Koshman

Usenet Archive
Joined
Dec 16, 2003
Messages
61
Reaction score
0
Hello!
Can somebody tell me is there a way to Cancel a calling Command in callback function to invoke some operations *before* and then to recall this Command again or call an another command or function?

I just found in the NG the reply of John Uhden, with the link to his Cancel.lsp. I tried it and find that it can't cancel Plot command!

Some other ways or I want too much? ; )

Thank you for your good will!
 
As the website advises "Note that commands such as "Quit" can not be cancelled as they require no further user input." To be more exact, there must be further command-line input in order to cancel. Perhaps you can accomplish what you want by undefining the "plot" and "print" commands, and defining custom c:plot and c:print functions.
 
Well, you could change "(vl-cmdf) " to (chr 3), but it's the same difference, so yes.
 
Using the "redefine" method, within your c:plot function, you could direct the program to proceed or not with the AutoCAD plot command.
 
Oh! John!
I didn't understand you then!
....And I tryied to cancel the redefined c:plot with "(vl-cmdf) "... : (

Defining my own PLOT I can do what I want without a doubt but I would prefer to make two different and independent things with reactors...
... bacause of XXI century...

Thank you again!
 

Latest threads

Back
Top