
- (defun c:tt ()
- (princ "\n选择实体: ")
- (setq ss (ssget)
- pc1 (getpoint "\n公转中心点: ")
- ang (UREAL 7 "" "角度" ang)
- int (Uint 7 "" "阵列数量" int)
- i 0
- )
- (repeat int
- (setq s0 (entlast)
- i (1+ i)
- )
- (xyp-copy ss)
- (setq ss1 (xyp-SSelEntnext s0))
- (xyp-rotate ss1 pc1 (* ang i))
- (xyp-rotate ss1 (xyp-9pt ss1 5) (* ang i 2))
- )
- (princ)
- )
|