gr8 stuff.....
well ...if we can put that circles in given layer...
Thanks and you're welcome!
Here's some code snips to be strategically placed into the code above:
To place the circle on a specific layer, first make sure the layer is there for our use...
);;end of initial setq's
(setq lyr (vla-add (vla-get-layers doc) "CircleLayer"));;use your Layer name
(vla-put-color lyr 1);;make this whatever color you want, 1 is red
(while (setq pline .......
Then, where each circle is created by this: (vlax-invoke space 'addcircle x 2.0)
change it to this:
(setq circ (vlax-invoke space 'addcircle x 2.0));;you can adjust the Radius by changing the 2.0 here
(vla-put-layer circ (vla-get-name lyr));;make sure to use the same name here
Also, make sure to add the variables lyr & circ to the Local declarations at the beginning