本帖最后由 Gu_xl 于 2011-3-31 19:34 编辑
回复 xyz2009xyz 的帖子
 - (defun c:tt()
- (setq ss (ssget "x" '((0 . "*DIMENSION"))))
- (if ss
- (progn
- (if (not (tblsearch "layer" "dim"))
- (command "layer" "m" "dim" "")
- )
- (command "chprop" ss "" "la" "dim" "")
- )
- )
- (setq ss (ssget "x" '((0 . "hatch"))))
- (if ss
- (progn
- (if (not (tblsearch "layer" "hat"))
- (command "layer" "m" "hat" "")
- )
- (command "chprop" ss "" "la" "hat" "")
- )
- )
- )
|