Author Topic: Temporarily change color of selected, multicolored blocks  (Read 890 times)

0 Members and 1 Guest are viewing this topic.

Woabow

  • Newt
  • Posts: 56
Temporarily change color of selected, multicolored blocks
« on: March 05, 2012, 08:06:19 AM »
Maybe this is not the right place to ask (I assume lisp is needed), but is there a way to temporarily change the color of some instances of a block and go back later? The items in the block do contain multiple colors and layers and the layers should not change if possible.

The situation is this: when I have a drawing with Block1 inserted many times, I would like to change the color of all instances of Block1 in a certain area. After I'm finished I would like to change the color(s) of the block back to normal.

When the block items would have a single color it would be easy, but they don't. Maybe storing the original color in the items for restoring later? The blocks can be nested too.

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Temporarily change color of selected, multicolored blocks
« Reply #1 on: March 05, 2012, 11:38:09 AM »
When you state "change block's colour" ... are the entities inside set to colour ByBlock?

Otherwise, changing the colours of the entities within the block will always update all instances of the block in one go. That's the point of a block - one definition, many instances.

If you want to force the issue, the only way i can figure something like this is to duplicate the block-definition to some temporary one. Then change the selected instances to that definition.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Woabow

  • Newt
  • Posts: 56
Re: Temporarily change color of selected, multicolored blocks
« Reply #2 on: March 05, 2012, 12:54:25 PM »
So there is no way whatsoever to overrule the color of a block? Assuming the entities in the block do have their own color and that I only want to change the color of blocks in a certain area.

 Creating temporarily duplicate blocks is maybe a solution, but I'm afraid it will create inefficient big drawings if not purged before every save.


irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Temporarily change color of selected, multicolored blocks
« Reply #3 on: March 06, 2012, 01:45:43 AM »
So there is no way whatsoever to overrule the color of a block? Assuming the entities in the block do have their own color and that I only want to change the color of blocks in a certain area.

Creating temporarily duplicate blocks is maybe a solution, but I'm afraid it will create inefficient big drawings if not purged before every save.
That's the problem yes. There's only 2 ways to affect individual references to different properties from the block definition:
  • The entities drawn with properties ByLayer inside of the block, can be changed throughout the whole DWG by adjusting those layers' properties.
  • Entities within the block with properties set to ByBlock will take on those properties of the individual reference.
Other than that, the temporary definition. You're correct about purging though.
Depending on what you want, the 2nd method above might do the trick. But that depends on the situation. If you could attach a sample DWG, I could try with that - hopefully there is a "simple" way.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.