Tbh,这是一个无聊的LISP编写-大量的用户提示,和繁琐的复制。。。
但是,当你说这是在3D中,块在3D空间中复制的方向是什么?
或者你是说只是指定要复制的x或y方向?
如果你想的话,这是一个开始。。。仅合并违约:
- (defun c:hc (/ cBlk tmp1 tmp2 tmp3)
-
- (or hc$slp:def (setq hc$slp:def 1))
- (or hc$cop:def (setq hc$cop:def 1))
- (or hc$spc:def (setq hc$spc:def 1))
-
- (if (and (setq cBlk (car (entsel "\nSelect Block: ")))
- (eq "INSERT" (cdr (assoc 0 (entget cBlk)))))
- (progn
- (initget 6)
- (setq tmp1 (getreal (strcat "\nSpecify Slope <" (rtos hc$slp:def) "> 1:")))
- (or (not tmp1) (setq hc$slp:def tmp1))
- (initget 6)
- (setq tmp2 (getint (strcat "\nSpecify Number of Copies <" (itoa hc$cop:def) "> : ")))
- (or (not tmp2) (setq hc$cop:def tmp2))
- (initget 6)
- (setq tmp3 (getreal (strcat "\nSpecify Spacing <" (rtos hc$spc:def) "> : ")))
- (or (not tmp3) (setq hc$spc:def tmp3))
-
|