Hello guys.
I have a dynamic block with visibility state that it has 20 states ("10x20" "10x30" "20x20" ... etc ) so I want to change the color of Polylines that reside into certain visibility states and not ALL and for example these only. ( "10x30" "20x20" )
How can I do that ?
I tried with vlax-for and
(command "-bedit" bn)
(if (setq ss (ssget "_X" '((0 . "LWPOLYLINE"))))
(repeat (setq sslen (sslength ss))
(setq obj (ssname ss (setq sslen (1- sslen))))
(vla-put-color (vlax-ename->vla-object obj) 3)
)
)
(command "_bclose" "")
Both change all polylines and not polylines in specific visibility state.
Any idea ?
Thanks in advance.