Jump to content

Change all colours in a drawing to by layer.


deano33

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 5 years later...

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

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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