TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: xinxirong on June 05, 2018, 12:27:01 AM
-
in old version CAD,I can use this code to cancle the command
(command "cmdName" arg1 arg2 ... ^C)
but in 2014
(command-s ^C) not success
-
I'm surprised that the first option did work.
You can still use COMMAND, how about:
(command-s "cmdName" arg1 arg2 ... (command))/code]
-
but you know why I use command-s?in repeat,mapcar,while etc Loop program,command will cause error.
-
Isn't ^C actually a variable that evaluates to nil?
-
I suppose you are using A2015 that has that issue VVC error...
From my testings A2014- and A2016+ don't have problems with (command) inside (mapcar '(lambda ( ... )) ...) (while) and (repeat X) loops...
-
I get it
(command-s ....)
(vla-SendCommand mydoc "\e");cancle activeCMD