本帖最后由 Linhay 于 2015-11-25 15:06 编辑
- (defun c:tt (/ lwn *DOC lname)
- (VL-LOAD-COM)
- (setvar "cmdecho" 0)
- (setq *Doc (vla-get-ActiveDocument (vlax-get-acad-object)))
- (vlax-for n (vla-get-layers *DOC)
- (setq lwn (vla-get-LineWeight n))
- ;;;(setq lname (vla-get-name n))
- (if (= lwn 0)
- (vla-put-Lineweight n 40) ;;(command "-layer" "lw" "0.40" lname "");;
- )
- )
- (setvar "cmdecho" 1)
- (princ)
- )
|