Jump to content
deano33

Change all colours in a drawing to by layer.

Recommended Posts

deano33

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..

Share this post


Link to post
Share on other sites
sevdo2000

You can use SETBYLAYER at the command and then choose SETTINGS to set by what properties you want.

Share this post


Link to post
Share on other sites
Tuns

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.

Share this post


Link to post
Share on other sites
deano33

Tuns of thanks to you all. Will have a try tomorrow.:)

Share this post


Link to post
Share on other sites
Organic
SETBYLAYER;all;;Yes;Yes;

That SHOULD do what you want as far as setting everything to "By Layer".

 

Thank you, this is very helpful.

Share this post


Link to post
Share on other sites
Tuns
Tuns of thanks to you all. Will have a try tomorrow.:)

I see what you did there. :lol:

Thank you, this is very helpful.

No problem. Glad it can help more than one person.

Share this post


Link to post
Share on other sites
Jaine

This is amazing thanks. Saves so much time. 

Share this post


Link to post
Share on other sites
ammobake

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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...