复制前,不能任意拾取基点,且不能连续复制。此外,拾取基点后,能先执行TAB旋转,再指定插入点就更好了,目前是指定插入点,再按住TAB旋转。
- (defun c:copydreh ()
- (setvar "cmdecho" 0)
- (while(setq el (car (entsel)))
- (setq el1 (entget el))
- (setq p1 (cdr (assoc 10 el1)))
- (command "_copy" (ssadd el) "" (trans p1 0 1) pause)
- ;(setq en (entget (entlast)))
- (setq en (vlax-ename->vla-object (entlast)))
- (princ "\nPress [Tab] to Rotate Text <Accept>: ")
- (while (= 9 (cadr (grread nil 2)));;(while (= 9 (cadr (grread nil 2)))
- (setq rt (vla-get-rotation en))
- ; en
- ;(entmod (subst (cons 50 (rem (+ (/ pi 2.) (cdr rt)) (+ pi pi))) rt en))
- (vla-put-rotation en (rem (+ (/ pi 2.) rt) (+ pi pi)) )
- ;)
- );while
|