Message 1 of 5
Rotate a Copy of selected Objects - works not properly

Not applicable
01-23-2015
07:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I create a lisp for "Rotate a Copy of selected Objects". But it doesn't work properly.
It is created the same way as written earlier lisp RTREFPOI:
so I don't know what's the problem. It doesn't listen the option "Copy", because it rotates selected Object, but not copies.
If you use ROTATE command to rotate and copy an object, there is step-by-step command list from CommandLine: Command: ROTATE Current positive angle in UCS: ANGDIR=counterclockwise ANGBASE=0 Select objects: 1 found Select objects: Specify base point: Specify rotation angle or [Copy/Reference] <270>: c Rotating a copy of the selected objects. Specify rotation angle or [Copy/Reference] <270>: 21 And here are my two lisps for "Rotate Copy of selected Object": ; Works not properly ; RTC = RoTate and Copy (DEFUN C:RTC1 () (setq zbior (ssget)) (COMMAND "_ROTATE" ;Select objects: zbior ;Specify base point: pause ;Specify rotation angle or [Copy/Reference] <270>: c "_C" ;Rotating a copy of the selected objects. ;Specify rotation angle or [Copy/Reference] <270>: 21 ) ) ;--- ; Works not properly ; RTC = RoTate and Copy (DEFUN C:RTC () (setq zbior (ssget)) (setq basept (getpoint "\nSpecify base point: ")) (setq ang (getangle "\nSpecify rotation angle: ")) (COMMAND "_ROTATE" ;Select objects: zbior ;Specify base point: basept ;Specify rotation angle or [Copy/Reference] <270>: c "_C" ;Rotating a copy of the selected objects. ;Specify rotation angle or [Copy/Reference] <270>: 21 ang ) ) ; Works not properly ; Here is what is in CommandLine: ;Command: rtc ;Select objects: 1 found ;Select objects: ;Specify base point: ;Specify rotation angle: 34 ;Invalid window specification. ;; error: Function cancelled ;Specify first corner: Specify opposite corner: 1 found (1 duplicate) ;Select objects: 1 found (1 duplicate), 1 total ;Select objects: 1 found (1 duplicate), 1 total ;Select objects: ;Specify base point: ;Specify rotation angle or [Copy/Reference] <0>: ;Command: *Cancel*
Where is error and how to repair it?