How To Ensure Command To Finish Fully In Lisp Program




If the last command is not waiting for the previous command in LISP where some user input was expected from user like text, user one of the below two methods:

(i) By inserting a "pause" option in text command statement. You can use many pause functions one after the other with a single space. But you may not be sure how many times user enters the input.

 
(ii) By writing a while loop to wait for previous command to completely finish using below statement:

      (while (= 1 (getvar "cmdactive")) (command pause))

Unless this statement is there, commands go concurrently from LISP to CAD session.