- ;;;*****倒直角优化****
- (defun c:w1 (/ txt)
- (setvar "cmdecho" 0)
- (setq txt (memory "\n输入倒角距离<" 'txt_dzj 20))
- (command-s "_.chamfer" "d" txt txt "_.chamfer" "u")
- (princ)
- )
- (defun memory (str var mor /)
- (or (eval var) (set var mor))
- (setq strtmp (getreal (strcat str (rtos (eval var) 2 4) ">")))
- (if (null strtmp) (setq strtmp (eval var)))
- (set var strtmp)
- )
为什么 (command-s "_.chamfer" "d" txt txt "_.chamfer" "u")这句在cad2020中运行不了,在2014中运行是可以的,有没有什么解决办法
|