Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Color of Hatch inside Blocks

6 REPLIES 6
Reply
Message 1 of 7
braudpat
2248 Views, 6 Replies

Change Color of Hatch inside Blocks

 

Hello

 

I haven't found the right routine but maybe I don't give the right key words with Google !?

 

So from a classic selection (or ALL for ALL Blocks of the DWG) of entities,

we will keep ONLY blocks (Static or Dynamic)

 

I am looking for a Lisp/VLisp routine to update all Color of Hatches inside Blocks when the Hatch Color is xxx

If the color hatch is NOT XXX we don't update !

 

The problem : update all hatch from blocks where Color = 255 (or any other value)

---> other classic Color (1-256)

OR 

--> RGB Color 255,255,255 or any other

 

I don't know at all how to switch hatch entities from classic color to RGB color inside a Block

And dynamic block in Lisp/VLisp are far from my level  0.2 in Lisp ...

 

So please I will appreciate a nice routine to do the job ?

 

Thks, Bye, Pat

 

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


6 REPLIES 6
Message 2 of 7
3wood
in reply to: braudpat

CHZ20 can change color based on a color matching rule, eg. Color 255 -> RGB 255,255,255.

But it doesn't has an option to filter object type such as Hatch.

Message 3 of 7
braudpat
in reply to: 3wood

 

Hello

 

Thks 3wood, I know this superb Routine CHZ20

but i need to modify ONLY hatch inside Blocks !

 

Bye, Pat

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 4 of 7
3wood
in reply to: braudpat

Hi Pat,

 

It took many days to find some time to add new functions to CHZ20.

Now you can enter HATCH in "Apply to subentity of" edit box to apply changes only to hatches in blocks!

chz20_10.png

Message 5 of 7
braudpat
in reply to: 3wood

 

Hello from France

 

I have ONLY the version of Jan 2013 without this option !

 

<Humour ON>

If you add beautiful/marvellous options to CHZ without warning all the AutCAD Users (worldwide), its a scandal !

<Humour OFF> 

 

Thks, Bye, Pat (Kudos +1)

 

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 6 of 7
3wood
in reply to: braudpat

Hi Pat,

 

Attached file here for your test. Hope it is not a scandal!

Use space to separate different object types

Message 7 of 7
myathsuhlaing
in reply to: 3wood

please reply how to get this dialog box?????

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost