Making objects in block change dynamically based on attribute values

Making objects in block change dynamically based on attribute values

Anonymous
Not applicable
648 Views
2 Replies
Message 1 of 3

Making objects in block change dynamically based on attribute values

Anonymous
Not applicable

Hi all. Did a quick search on the net but can't find any info regarding this topic.

 

So I want to know if it's possible to modify a block based on an attribute value. Say for example my block is a circle with a vertical line on top and has an invisible attribute called fruit. I'd like the circle (and not the line) to turn red if the attribute value equals "cherry" and turn green if the attribute value equals "olive". Maybe I also want the line to disappear if the attribute value is "pea".

 

Does this make any sense? Is there any way to make the block behave based on attribute values?

 

Thanks.

0 Likes
Accepted solutions (1)
649 Views
2 Replies
Replies (2)
Message 2 of 3

Libbya
Mentor
Mentor
Accepted solution

It's remarkable that a search did not answer the question as it is one of the more commonly asked question on this forum.  Nope, there isn't any way with stock Autocad.  Attributes cannot affect parameters.  

 

You can adjust the attribute values based on parameter values, though, which usually accomplishes the same end result for the same effort.  

Message 3 of 3

Anonymous
Not applicable

Actually google answers with random sites either talking on how to set parameters or attributes, but not the combination of both.

 

Thanks for your quick reply though.

0 Likes