deano33 Posted November 24, 2013 Share 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 Link to comment Share on other sites More sharing options...
sevdo2000 Posted November 24, 2013 Share Posted November 24, 2013 You can use SETBYLAYER at the command and then choose SETTINGS to set by what properties you want. Quote Link to comment Share on other sites More sharing options...
Tuns Posted November 25, 2013 Share 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 Link to comment Share on other sites More sharing options...
deano33 Posted November 28, 2013 Author Share Posted November 28, 2013 Tuns of thanks to you all. Will have a try tomorrow. Quote Link to comment Share on other sites More sharing options...
Organic Posted December 1, 2013 Share 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 Link to comment Share on other sites More sharing options...
Tuns Posted December 2, 2013 Share 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 Link to comment Share on other sites More sharing options...
Jaine Posted June 27, 2019 Share Posted June 27, 2019 This is amazing thanks. Saves so much time. Quote Link to comment Share on other sites More sharing options...
ammobake Posted June 28, 2019 Share 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 Link to comment Share on other sites More sharing options...
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.