Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, Im trying to insert a command pause in between two snap functions in the middle of a pline command. The idea is to allow the user to make as many or as few clicks between the snaps. This is the entire program, you can see the 2 commented out lines that did not work. I fell like Im missing something between the command pause and the second "_CEN" thing.
(DEFUN C:RAWL()
(GV)
(COMMAND "-LAYER" "SET" "RUNS" "" "" "")
(COMMAND "-color" "143" "-linetype" "SET" "R_AWL" "")
(COMMAND "PLINE" "_CEN"
;(while (> (getvar "CMDACTIVE") 0) (command pause))
;(while (eq 1 (logand 1 (getvar "CMDACTIVE")))(command pause)
"_CEN" pause)
(while (> (getvar "CMDACTIVE") 0) (command pause))
(LM:QuickField "Length" "%lu2%pr1%ps[Length:,]%ct8[0.08333333]" 3)
(command "-linetype" "set" "Bylayer" "")
(SV)
(princ)
)
At first I tried this and it works but only for a single click and I need the flexibility to have a varying number of clicks between snaps
(COMMAND "PLINE" "_CEN" pause "_CEN" pause )
Solved! Go to Solution.