How to change color multiple block

How to change color multiple block

FAJARNAZM123
Observer Observer
2,544 Views
8 Replies
Message 1 of 9

How to change color multiple block

FAJARNAZM123
Observer
Observer

hello everyone

i have problem with block, there so many block to edit (edit color and line to by layer)  🙂 can anyone help me how to edit multiple block without exploding the blocks. btw iam already have lisp from augi made by peeter jamtgard, this lisp use to change color blok to bylayer but this lisp just for one block only . can it edit to multiple block?

 

thanks for your kind 🙂

0 Likes
2,545 Views
8 Replies
Replies (8)
Message 2 of 9

TomBeauford
Advisor
Advisor

I've used that code by Peter since he posted it on AUGI. As it modifies the block definition it modifies every insertion of that block in your drawing. It works pretty fast and modifying them one at a time allows you to see the results every time you use it. Many block definitions need those various colors, linetypes, lineweights, etc… You wouldn't want to modify every block definition in your drawing like that.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 3 of 9

FAJARNAZM123
Observer
Observer

yes, i wanna modify my drawing like that

0 Likes
Message 4 of 9

ChicagoLooper
Mentor
Mentor

@FAJARNAZM123 

Would it be possible to upload your block? Your block holds the key so it must be evaluated. 

 

If you want to manage your block’s line color and line weight on a ByLayer basis then your block is more import than the lisp. 

 

Chicagolooper

EESignature

0 Likes
Message 5 of 9

FAJARNAZM123
Observer
Observer

Yes i can, its already reupload

0 Likes
Message 6 of 9

ChicagoLooper
Mentor
Mentor

@FAJARNAZM123 

You uploaded the entire drawing. You didn't mention which block you wanted to change. Here's an example showing How to Manage a Block in the Properties Palette Using ByLayer.  

 

It's best if you perform this operation by taking your block to the Block Editor. You'll need to perform the changes in the block editor for each individual block. Make sure you save your changes when you exit the block editor. 

 

1. Select an individual block=Right click=>Block Editor1. Select an individual block=Right click=>Block Editor

 

2. Select ALL lines=>Make ALL the changes=>Exit the Block Editor=>Save changes when exiting.2. Select ALL lines=>Make ALL the changes=>Exit the Block Editor=>Save changes when exiting. 

Chicagolooper

EESignature

0 Likes
Message 7 of 9

FAJARNAZM123
Observer
Observer

i upload the entire drawing because 80% of the drawing is blocks, and i need change them all to by layer (color, linetype, and lineweight) at one time, not one by one coz it wasting time

 

0 Likes
Message 8 of 9

vinodkl
Mentor
Mentor

Hello @FAJARNAZM123 

 

Please try the lisp attached(Credits to the creator). It sets the layers inside the block to layer "0". This should help you 🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 9 of 9

ChicagoLooper
Mentor
Mentor

@FAJARNAZM123 

<<.....not one by one coz it wasting time....>>

 

Huh?! Waste time. You need to INVEST some time to learn how! 

 

Have you tired using pen assignments? If you can't answer then the whole Forum will know you are ignoring the question.

101101102102103103104104105105

The pen assignments in above examples take less than 3 minutes. And that's 3 minutes well spent.

Chicagolooper

EESignature

0 Likes