注意大小写。
 - (defun c:J_SS (/)
- (setq ss1 nil ss2 nil ss3 nil)
- (if (setq ss1 (ssget '((0 . "DIMENSION,LINE,ARC,*TEXT")(8 . "A,B")))) (progn
- (setq ss2 (ssget "p" '((0 . "*TEXT")(1 . "*=*")(8 . "A" ))))
- (setq ss3 (ssget "p" '((0 . "LINE,ARC")(8 . "B"))))
- (command "select" ss1 "")
- (setq ss1 (ssget "p" '((0 . "DIMENSION")(8 . "B"))))
- ))
- (if (/= (sslength SS1) 0)
- (command "_.chprop" ss1 "" "_color" "_bylayer" "")
- )
- (if (/= (sslength SS2) 0)
- (command "_.chprop" ss2 "" "_color" "_bylayer" "")
- )
- (if (/= (sslength SS3) 0)
- (command "_.chprop" ss3 "" "_color" "_bylayer" "")
- )
- (if (/= (sslength SS1) 0)
- (command "Chprop" SS1 "" "layer" "C" "")
- )
- (if (/= (sslength SS2) 0)
- (command "Chprop" SS2 "" "layer" "D" "")
- )
- (if (/= (sslength SS3) 0)
- (command "Chprop" SS3 "" "layer" "E" "")
- )
- )
|