本帖最后由 先进者 于 2012-4-11 23:43 编辑
- ;角度阵列程序;(2005.8.5胡晓航(Angle array routine),
- (defun C:AAR ( / ss ang bp cnt dist d)
- (PRINC "\n 角度阵列 ")
- (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)
- )
能不能帮我在对象间距和对象个数那里加个记忆功能 |