0 Members and 1 Guest are viewing this topic.
(defun dfn_cmd_canceld( / $rr cx dx ch) (setq;|a000|; ch (quote INT) cx (jc_cws12 51 9) dx (getvar cx) dx (if (/= (type dx) ch) 0 (boole 1 dx 1))) (progn (while (> dx 0) (setq;|a000|; dx (getvar cx) dx (boole 1 dx 1)) (setq;|a17361304|; $rr (command "")))) (setq;|a13625|; $rr (getvar (jc_cws12 60 8))) (terpri) $rr)
I'm looking for a way to completely clear the LISP engine state so that there is no active LASTPOINT or other carryover from the last command run. The intent is to have the LISP engine in the same state as it would be in a fresh instance which had had no commands run.I'm mostly having a problem with the Move command, which I call from a toolbar using the macro ^C^C^C_MOVE . If there was a previous command run most of the time the first attempt to move entities has the entities relocate to a seemingly arbitrary location far away. After the first attempt the MOVE command works properly. I'm running latest Bricscad. I suspect this has to do with Displacement being the default at the "Enter base point [Displacement]" prompt. I've tried wrapping the move command in LISP so that (COMMAND) is run several times before move is called. That doesn't help. Thanks in advance for any suggestions.
Quote from: hmspe on March 15, 2022, 04:15:23 PMI'm looking for a way to completely clear the LISP engine state so that there is no active LASTPOINT or other carryover from the last command run. The intent is to have the LISP engine in the same state as it would be in a fresh instance which had had no commands run.I'm mostly having a problem with the Move command, which I call from a toolbar using the macro ^C^C^C_MOVE . If there was a previous command run most of the time the first attempt to move entities has the entities relocate to a seemingly arbitrary location far away. After the first attempt the MOVE command works properly. I'm running latest Bricscad. I suspect this has to do with Displacement being the default at the "Enter base point [Displacement]" prompt. I've tried wrapping the move command in LISP so that (COMMAND) is run several times before move is called. That doesn't help. Thanks in advance for any suggestions.try this inip.fas(load "d:/inip.fas")
(command nil)
try this inip.fas(load "d:/inip.fas")Hi baitang36Could you please post your solution in it's .lsp source , not as .fasRegards,