定义命令不能用小数点. .仅供参考. - (setq x 5)
- (repeat (fix(/ 1000 5))
- (setq runlst (cons (strcat "f" (rtos x)"," "cx-cmd-fr " (rtos x))runlst))
- (setq x(+ 5 x))
- )
- (setq runlst nil)
- (defun c:cx-cmd-fr(r)
- (command "FILLET" "r" r"FILLET")
- (cx-pause)
- )
- (defun c:tt nil
- (mapcar '(lambda(x)(eval(read(strcat "(defun c:" (car (cx-split1 x ",")) "()(c:" (cadr (cx-split1 x ",")) "))"))))runlst)
- (prompt "成功加载CXCAD,BY ChenX 2015\r")
- (princ)
- )
|