my guess, it's a 'logical' and which AND's 2 values together, if they're the same it evaluates to TRUE.
But wouldn't the current "cmdactive" 33 make it a false statement then ??
1 does equal 1, but 1 AND 33 does not equal 1.
The vl-cmdf is irrelevant.
The fix is the use of
(while (= 1 (logand (getvar "cmdactive")))
(command pause)
)
basically the SKETCH, LINE, RECTANGLE commands you tried require additional input from the user.
The (while .. construct just tests if the COMMAND is still active and continues to PAUSE inside that command while you are providing input to it.
Ohhh, so, the LOGAND is mearly suggesting the "CMDACTIVE" is still running or active. The (= 1 ... 1) is just fluff, right ??
And the "... vl-cmdf is irrelevant." is just the VLA of the lisp (command ". ...) line.
Regarding the possible values for CMDACTIVE refer to the help files, it is reasonably well documented.
Yeah, I was looking at that. That's what was throwing me. My variable was set at 33 and you had the (= 1 ... 1) in the code.
Perhaps I am still off the road a bit, but I've learned a lot tonight. Thank you all for your comments and help.