Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

LSP for edit multiple blocks (color) at once in AutoCAD

jafary64

Mechanical
Joined
Nov 12, 2009
Messages
35
Location
US
Hi my friends
I want to edit multiple blocks (color) at once in AutoCAD without open block editor
what can I do
I search and find some LSP in below link but when I APPLOAD to AutoCAD it doesn't work
Can anybody help me ?
Thanks a lot
 
Simply set every layer in the drawing to the color you want. If you draw like I do, then most if not all of the lines will be BYLAYER, and when you redefine the layers the colors in the blocks will update, too.

It's not quite what you asked for, but it might work for you if you only need the color(s) to change and don't care about any other consequences in the drawing.

If you do care about the consequences, then you could prep the other elements in the drawing for the change by moving them to other (or new) layers that won't be affected by the changes you're making to the blocks.

If you have overridden line colors in the blocks, this idea doesn't work perfectly. But maybe just a few, and it's quick to fix them...?
 
Simply set every layer in the drawing to the color you want. If you draw like I do, then most if not all of the lines will be BYLAYER, and when you redefine the layers the colors in the blocks will update, too.

It's not quite what you asked for, but it might work for you if you only need the color(s) to change and don't care about any other consequences in the drawing.

If you do care about the consequences, then you could prep the other elements in the drawing for the change by moving them to other (or new) layers that won't be affected by the changes you're making to the blocks.

If you have overridden line colors in the blocks, this idea doesn't work perfectly. But maybe just a few, and it's quick to fix them...?
Thanks for your help
but when I change color of block layer the color don't change and I must go to editor
 
You speak of assigning each block to a layer. That can change the color of a block, but only if the lines inside the block are on layer 0 (zero). I assumed you had already tried that, and I'm proposing a different way. This is more forceful.

Just in case my comment was lost in translation: I mean change the layer colors this way:

Whatever layers are in each block, they are visible in your layer manager. Change the basic color definition there.
This might not work if there is a color override inside each block.
1752452095936.png
 

Part and Inventory Search

Sponsor

Back
Top