×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Change color of block

Change color of block

Change color of block

(OP)
I want to change color of block , but I don't want redefine this block , and partner send to me object in block- color not by layer. Do you have any solution ? Help me

Thanks you so much
Best regard

RE: Change color of block

Dear cad123,
If you create the block elements in layer "0" and set their color to BYLAYER, inserting the block in each layer gives the color of that layer to block elements. Keep in mind that the CECOLOR system variable should be set to BYLAYER to set the layer's color to each new object.
:)
Farzad

RE: Change color of block

I don't know if Farzad answered your question but why don't you wish to redefine the block? What are you afraid of losing? Redefining a block should only effect the linework not the attributes. But there is way to redefine these too.

At this point, seems like the block needs to be done over if the colors aren't bylayer.

Rich

RE: Change color of block

(OP)
Thanks for your help
But I don't want redefine block because I'm not sure how the partner do before, if I redefine it is not good. Do you have any lisp routine to change color of block automatic, I'm try to write but it not easy, last week I try cadaddon it good but I only need change color of block.

Best regard,
cad123

RE: Change color of block

In AutoCAD 2000:

View>Toolbars

Select Refedit then close.
Then select the far left icon (edit Block or Xref) in the toolbar.
Select the block to be edited. Then OK.
Now select the items you wish to edit within the block then right click or hit the enter key.
The items you selected are now highlighted and editable.
When finished select the far right icon (save back changes to reference) and the block will be updated.

This will work on one block at a time only.

Steve Smith
Product Engineer
Staco Energy Products Co.
www.stacoenergy.com

RE: Change color of block

If you create a block with color = byblock instead of bylayer. That will give you the option of changing the color or linetype of an individual block. Now to answer the original question. Cad123 do you want to change the color of a single block or do you want to change the color globally on all the blocks of the same name? I have lisp routines that will do either one.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources