Message 1 of 7
(command-s) in error routine

Not applicable
03-05-2015
07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hell together
I changed my lisp error routines for AutoCAD 2015.
I replaced command into command-s.
By OPENDCL routines offers (*push-error-using-command*) no solution.
(defun myerr (ed)
(if (and (/= ed "Function cancelled") (/= ed "quit / exit abort"))
(princ (strcat "\nError: " ed))
)
(command-s)
(command-s)
(if (= (logand (getvar "UNDOCTL") 8) 8)
(progn
(command-s "_.UNDO" "_E")
(command-s "_.U")
)
)
(command-s "_.UNDO" "_A" "_ON")
(setq *error* olderr)
(princ)
)
But I note that the call (command-s) does not cancelled an open AutoCAD command.
(command) this has worked.
How can I stop a possiple open AutoCAD command in an error routine to continue
for example with "_UNDO" command
Many thanks!