How to pause in a script
How to pause in a script
(OP)
I know how to pause but I would like to pause sometimes more than once or only once in a lsp... For instance
rotate command
defun:1390 ()(command "rotate" pause "" pause "90")(princ))
and I know that you can use the / instead of pause with the same results but if I want to select more than one object (either window or crossing or selection) I dont know how to specify user input
thanks in advance...
Antonius60
rotate command
defun:1390 ()(command "rotate" pause "" pause "90")(princ))
and I know that you can use the / instead of pause with the same results but if I want to select more than one object (either window or crossing or selection) I dont know how to specify user input
thanks in advance...
Antonius60





RE: How to pause in a script
CODE
;Description: This program will rotate selected boject by 180 degrees.
;
;Programmer: Kevin Petursson
;Date: May 16, 2005
;
;
;
(defun C:rot180(/ CtrPt)
(setvar "CMDECHO" 0)
(setq ss1 nil)
(setq ss1 (ssget))
(setq CtrPt (getpoint "\nPick the rotation Point:... "))
(command "rotate" "P" "" CtrPt "180")
(setq ss1 nil)
(setvar "CMDECHO" 1)
(princ)
) ;end defun
ss1 is the mane of the selection set.
What kind of user input do you want?
RE: How to pause in a script
^C^C^C^CSELECT AU \ROTATE P ;\180;
RE: How to pause in a script
this works just fine