- 楼主的附件:
-
- ;;;;;;;;;;;;;角度阵列程序;;;;;;;;;;;;;;;;
- (defun C:AAR ( / ss ang bp cnt dist d)
- (cond
- ( (setq ss (ssget))
- (initget 1)
- (setq bp (getpoint "\n基点: "))
- (initget 1)
- (setq ang
- (getangle bp "\n阵列方向: "))
- (initget 7)
- (setq dist
- (getdist "\n对象间距: "))
- (initget 7)
- (setq cnt (getint "\n对象个数: "))
- (setq d 0.0)
- (setvar "cmdecho" 0)
- (command "_.undo" "_g" "_.copy" ss "" "_m" bp)
- (repeat (1- cnt)
- (command (polar bp ang (setq d (+ d dist)))))
- (command "" "_.undo" "_e"))) (princ))
|