Hide or unhide text based on whether or not an attribute has data

Hide or unhide text based on whether or not an attribute has data

Anonymous
Not applicable
445 Views
4 Replies
Message 1 of 5

Hide or unhide text based on whether or not an attribute has data

Anonymous
Not applicable

If I have a 3 pieces of regular text, each next to an attribute, is it possible to hide or unhide the text based on whether or not the attribute has data in it? I've included drawing.dwg as a block to show a layout.

0 Likes
446 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor

Unless I'm missing something about what you want, you can just leave the default field blank for the attributes and they will not display anything unless they are changed to include a value.  

0 Likes
Message 3 of 5

Libbya
Mentor
Mentor

...but to answer your question, no, an attribute value (or lack thereof) cannot drive a visibility change in stock AutoCAD dynamic blocks.

0 Likes
Message 4 of 5

Anonymous
Not applicable

What if I change my approach. Let's say that all entities are attributes. Please ignore the original attachement to decrease confusion. To help you visualize what I would like to try, let me speak programmatically. 

 

If attr1 is not blank then attr2 is visible.

Elseif attr1 is blank then attr2 is invisible.

 

I want to apply the above using a block action, dynamic block in conjunction with an action, a lookup table, or similar to control an attributes visibility.

0 Likes
Message 5 of 5

Libbya
Mentor
Mentor

In that case, see my second post.  Attribute values cannot drive other parameter changes (including visibility) within stock AutoCAD. 

0 Likes