Yes, it's part of a larger program. Normally, without programming, I would select a group of objects and just change the layer in the properties window. I didn't know about that command, so thanks.
I started using a program that creates contours on a pointcloud. I import that into CAD, but the major and minor contours are set to a specific color. I want to put the major and minors on their own layer set to Bylayer so when I hand the drawing off to the client, they can change the colors by simply changing the layer color.
I also want to thicken the major contours, but a problem I have is most contours are polylines and a few are lines. When I have only polylines selected, I can change the global width in the properties dialog. If a mixture of polyline and lines are selected, there is no thickness option in the dialog. I know when I try to PEdit and line, it asks if I want to change it to a poly, then I can give it width. Is there a command that changes lines to polys?
I want to completely automate the process by just running the program and it selects all the polys (or steps through the database one by one (entnext) checking if it is a poly, converting it to a poly if it is a line, checking the entity's color and if a major contour, changing it to the major contour layer, making color bylayer and adding thickness. If the current color is a minor contour, setting it to bylayer and moving it to the minor contour layer.
I know how to do all of that except converting an entity to a polyline from a line.
Buck Wyckoff