Hi, try
(defun wait (secs / target)
(setq target (+ (/ secs 24.0 60.0 60.0) (getvar "date")))
(while (< (getvar "date") target))
T
)
e.g.
(wait 10) pauses for 10 secs
Ian
@Anonymous wrote:....
How do I pause for a certain length of time 5 seconds or 10 seconds.
....
(command "_.delay" 5000)
or
(command "_.delay" 10000)
@Anonymous wrote:
.... Forgot to tell you the commands have to lisp and not vlisp....
As devitg said, they are ordinary AutoLISP. For an example of how they might be used, paste this into your Command: line:
(command "_.line" (getvar 'viewctr) (polar (getvar 'viewctr) 0 (getvar 'viewsize)) "" "_.delay" 5000 "_.rotate" "_last" "" (getvar 'viewctr) "90")
and hit Enter. No matter what your drawing units or zoom level, it should draw a Line from mid-screen off to the right, and 5 seconds later, rotate it so it goes upward.
Can't find what you're looking for? Ask the community or share your knowledge.