deano33 Posted November 24, 2013 Posted November 24, 2013 After a macro in AutoCAD LT that will change all existing objects in a drawing including all embedded blocks to colour by layer. Also after macro that changes the colour set for all layers to colour 9. Also can you create layer filters from the command line? I want to set up a macro to create these for me on a lot of existing drawings. Note I am using LT 2012. Thank you in advance for any assistance.. Quote
sevdo2000 Posted November 24, 2013 Posted November 24, 2013 You can use SETBYLAYER at the command and then choose SETTINGS to set by what properties you want. Quote
Tuns Posted November 25, 2013 Posted November 25, 2013 SETBYLAYER;all;;Yes;Yes; That SHOULD do what you want as far as setting everything to "By Layer". Yes you can create filters from the command line by using the -layer command. -Layer;filter;new; I don't know about changing all objects to color 9 though. The only way to do it is using the -layer command again... I guess this Select;all;;-layer;color;Co;Color;9;[color="red"](layer names)[/color] would work. I don't know if the "select;all;;" part will work but the rest of it should. Just replace the part in red with all the layer names you want. Quote
deano33 Posted November 28, 2013 Author Posted November 28, 2013 Tuns of thanks to you all. Will have a try tomorrow. Quote
Organic Posted December 1, 2013 Posted December 1, 2013 SETBYLAYER;all;;Yes;Yes; That SHOULD do what you want as far as setting everything to "By Layer". Thank you, this is very helpful. Quote
Tuns Posted December 2, 2013 Posted December 2, 2013 Tuns of thanks to you all. Will have a try tomorrow. I see what you did there. Thank you, this is very helpful. No problem. Glad it can help more than one person. Quote
ammobake Posted June 28, 2019 Posted June 28, 2019 2019 and higher also has LAYERTRANS command now which can do basically the same (and some other stuff). If you want it can force everything in the drawing to by layer. also allows you to match your layer properties to another drawing. -ChriS Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.