这样就不用放在外面那句了- (defun jiyi (word bianliang moren /)
- (or (eval bianliang) (set bianliang moren))
- (setq wordtmp(getdist (strcat word (rtos(eval bianliang) 2 4) ">")))
- (if (null wordtmp)(setq wordtmp (eval bianliang)))
- (set bianliang wordtmp)
- )
- (defun c:33 ( / kwd now new obj)
- (setq c(jiyi "\n请输入单边偏移距离<" 'jiy 10))
- (setq obj (vlax-ename->vla-object (car(entsel))))
- (vl-catch-all-apply 'vla-offset (list obj c))
- (vl-catch-all-apply 'vla-offset (list obj (- c)))
- (princ)
- )
|