- (defun c:GPSC ()
- (or *qd (setq *qd 256))
- (setq *qd (cond((getint (strcat "\n输入颜色号 <"(itoa *qd) ">: ")))(*qd)))
- (vlax-for obj (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
- (if (member (Vlax-Get obj 'Layer ) (list "SwBzPWJgBz" "SwBzYYJgBz" "SwBzPWXJgBz" "SwBzYYXJgBz" "SwBzJJJgBz"))
- (Vlax-Put-Property obj 'Color *qd)
- )
- )
- )
请问一下大神,这个代码为什么不能实现啊,附cad |