PDA

View Full Version : Change colour of all entities within a block


rajarshi
2005-09-29, 09:16 AM
Hi,

We use blocks which have multiple colored entities within it. All entities are in zero layer and bylayer color, but some attributes are assigned magenta color. I need to make an autolisp program that would convert all these blocks into color 8.

Can someone give me hints how it can be done?

Thanks,
Rajarshi

Mike.Perry
2005-09-29, 09:39 AM
Hi

For starters take a look at the following threads...

Changing block entities' color to bylayer (http://forums.augi.com/showthread.php?t=5547)

batch modification of block properties (http://forums.augi.com/showthread.php?t=6869)

Colors Bylayer (http://forums.augi.com/showthread.php?t=23260)

Have a good one, Mike

peter
2005-10-01, 02:22 PM
Here is a function that converts all the objects (excluding other blocks) in a block to be bylayer.

Peter
Hi,

We use blocks which have multiple colored entities within it. All entities are in zero layer and bylayer color, but some attributes are assigned magenta color. I need to make an autolisp program that would convert all these blocks into color 8.

Can someone give me hints how it can be done?

Thanks,
Rajarshi

tlewald
2005-10-17, 07:34 PM
Peter,

Thanks for posting this to the group - it is extremely helpful!

Is there a way it can be modified to change linetype and lineweight to ByBlock also?

Possible to allow the user to window the selections instead of having to pick individual blocks?

Thanks again for sharing!