Rotate, Radians - Select & have to press 2xEnter not 1x

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I made lisp for rotating about an angle given by some number of PI
(DEFUN C:RTRAD (/ NumberOfRadians AngRad AngDeg) (setq zbior (ssget)) (COMMAND "_ROTATE" ;Select objects: zbior "" ;Specify base point: pause ) ;Specify rotation angle or [Copy/Reference] <270>: (setq NumberOfRadians (getreal "\nSpecify number of PI: ")) (setq AngRad (* NumberOfRadians PI)) (setq AngDeg (* (/ 180 PI) AngRad)) (COMMAND AngDeg) )
Great thanks to Kent1Cooper, who show me that you can ask the user for data not only before you run command, but also when it is running.
(I mean this situatiion: http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-under-angle-work-bad-bad-an...
Thank to your advice, I did this lisp. Thank you.
But I have one prolem with this command. I see at it and I can't find where the error could be.
What is this error? When you run RTRAD, Enter, then you are asked to select objects to rotate. You select, Enter, and... And nothing,
You press Enter seconf time, and now you are asked for picking BasePoint.
My question is: Why is this in hat way? What causes it? And how can I repair it?