本帖最后由 htlaser 于 2020-6-29 17:32 编辑
 - (defun C:ttt (/ ss)
- (setvar "cmdecho" 0)
- (if(= (tblsearch "layer" "软包") nil)(command "-layer" "n" "软包" "s" "软包" "")(command "-layer" "s" "软包" ""))
- (setq ss (ssget "i"))
- (if (= ss nil)
- (c:tcrb)
- (c:ff2)) (setvar "CLAYER" "0");设置0层为当前图层
- (princ))
- (defun c:tcrb()
- (command "change" (ssget) "" "p" "la" "软包" "c" "bylayer" "lt" "bylayer" "") (princ))
- (defun c:ff2 ()
- (setvar "CLAYER" "0") ;设置0层为当前图层
- (command "OSMODE" "4159" "ortho" "on" "line" )
- (princ)
- )
最新修改
|