Page 1 of 1

How do I define a Color etc. for a Block ....

Posted: Fri Oct 04, 2013 3:39 am
by Husky
How do I define a Color, Lineweight or Linetype for a Block to use it as attributes for entities .... :oops:
Husky-2013.10.03-01.png
Husky-2013.10.03-01.png (12.84 KiB) Viewed 10547 times

Re: How do I define a Color etc. for a Block ....

Posted: Fri Dec 13, 2013 4:20 pm
by aaa
Hi,

the only way I found is to edit the block, select all, change color, and then close the block…

It would be easier to select the block and change the color, but that doesn't work for me.

Re: How do I define a Color etc. for a Block ....

Posted: Fri Dec 13, 2013 9:00 pm
by andrew
Note that "By Block" actually strictly speaking means "By Block Reference". Unfortunately, the term 'block' in the context of CAD can mean a 'block definition' or a 'block reference'. Block definitions do not have attributes. They are not on a layer either. Each block reference is on a layer and has attributes.

1. Create a block definition with a line in it with its color set to 'By Block'.
2. Insert a block reference of that block.
3. Select that block reference and change its color in the property editor to observe what the attribute value 'By Block' does.

Re: How do I define a Color etc. for a Block ....

Posted: Fri Dec 13, 2013 11:29 pm
by aaa
OK, thank you ! Great discovery !

I rephrase in a simpler way (useful for me, maybe for others) :
1. draw something ;
2. select it ;
3. define properties to "By block" ;
4. group it into a block (block definition) ;
5. change the block properties (block reference) in the property editor, it works !
5'. let the block properties (block reference) default options ("By layer"), then move the block to another layer, and the block take the properties of the new layer… Nice !

Is it possible to have "By block" by default, instead of selecting that option for each new line I draw ?

Re: How do I define a Color etc. for a Block ....

Posted: Sat Dec 14, 2013 10:13 am
by andrew
aaa wrote:Is it possible to have "By block" by default, instead of selecting that option for each new line I draw ?
Have a look at the pen tool bar:
View > Toolbars > Pen

Re: How do I define a Color etc. for a Block ....

Posted: Sat Dec 14, 2013 1:17 pm
by aaa
Incredible !

Each time I have a question, you have an answer, and there is a corresponding feature !

That's the tool I need.

Thank you !