357785513 发表于 2011-11-14 12:50 
咱再顶,要不然真得沉了
 - (defun c:tt()
- (setq ent (entlast))
- (command "_spline")
- (while (= 1 (getvar "cmdactive"))
- (command pause)
- )
- (setq new (entlast))
- (if (not (equal new ent))
- (progn
- (setq d (getreal "\n 偏距:"))
- (if d
- (progn
- (VL-CATCH-ALL-APPLY 'vla-Offset (list (setq new (vlax-ename->vla-object new)) d))
- (VL-CATCH-ALL-APPLY 'vla-Offset (list new (- d)))
- )
- )
- )
- )
- (princ)
- )
|