Jan 7, 2005 #1 roust Mechanical Joined Apr 10, 2002 Messages 6 Location CN 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?
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?
Jan 12, 2005 #2 Hmo Electrical Joined Nov 1, 2003 Messages 42 Location BE set Newlayer = activedrawing.layers.add("Center") Upvote 0 Downvote
Jan 16, 2005 Thread starter #3 roust Mechanical Joined Apr 10, 2002 Messages 6 Location CN Thank you. it should be: set newlayer=AcadObj.ActiveDocument.layers.Add("Center") Upvote 0 Downvote