Automatic colour colour coding to identical blocks

Automatic colour colour coding to identical blocks

Yash.Bhosale8G36P
Explorer Explorer
365 Views
4 Replies
Message 1 of 5

Automatic colour colour coding to identical blocks

Yash.Bhosale8G36P
Explorer
Explorer

Hello everyone,
I am looking for a lisp code that can help me colourcode my blocks upon slecetion. 

YashBhosale8G36P_0-1665044200085.png

For example in the above image. Every rectangle or module is one block and I have selected 6 of them for which i want a different colour background so that it is differentiable. It can also be a continious colour patch for the selected blocks.

YashBhosale8G36P_1-1665044496993.png

(something like this)



Any help is highly appreciated. 

Thanks 🙂


0 Likes
366 Views
4 Replies
Replies (4)
Message 2 of 5

hak_vz
Advisor
Advisor

Attach your sample drawing

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

Use bedit on your block and if the color is a solid hatch then set it to byblock. You can then change color to what ever you like. There is various examples of say random color or next color and so on.

SeaHaven_0-1665111507572.png

 

0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant

As suggested by @Sea-Haven, assign the color BYBLOCK to whatever part of the Block you want to vary in color, and assign your varying colors to the Block insertions.  The variable part could be a Solid Hatch, a [2D] Solid object, a Polyline with width, a 3DFace or [3D] Solid under some Visual Styles -- whatever.  And that part can be colored variably even if what looks like an outline in your image is not [given BYLAYER or some other override color assignment].

Kent Cooper, AIA
0 Likes
Message 5 of 5

Yash.Bhosale8G36P
Explorer
Explorer

Thankyou so much everyone !!

0 Likes