how to add a new layer in autocad with vb?
how to add a new layer in autocad with vb?
(OP)
I want to add a new layer in autocad, use code below,
set newlayer=AcadObj.ActiveDocument.Modelspace.layers.Add("Center")
but it cant be work. why? how to do it?
set newlayer=AcadObj.ActiveDocument.Modelspace.layers.Add("Center")
but it cant be work. why? how to do it?





RE: how to add a new layer in autocad with vb?
RE: how to add a new layer in autocad with vb?
it should be:
set newlayer=AcadObj.ActiveDocument.layers.Add("Center")