Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp help with repeating a routine

1 REPLY 1
SOLVED
Reply
Message 1 of 2
gccdaemon
374 Views, 1 Reply

Lisp help with repeating a routine

I have a lisp routine that I am using to move a detail next to another then move it again to leave a speace between the two. What I need is a routine that will repeat this function until the user presses Enter or Escape keys.

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
1 REPLY 1
Message 2 of 2
gccdaemon
in reply to: gccdaemon

Dumb question. Should have googled first.

 

(defun C:DETAILMOVE (\ GP1)
	(while	(setq GP1 (getpoint "Pick LOWER LEFT corner of detail [press ENTER to exit]: "))
		(C:DTLMOVE)
	)
	(princ)
)
(princ)

 

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost