Multiple Attribute definitions in a block

Multiple Attribute definitions in a block

Anonymous
Not applicable
4,030 Views
8 Replies
Message 1 of 9

Multiple Attribute definitions in a block

Anonymous
Not applicable

I would like to do what this man tried a few years ago multiple-attribute-definitions-in-a-block, I have valves and in the same line of text I would like to define some parameters. Example VB-900-001 where VB is the valve type, 900 is the area and 001 is the sequential odos in the same line of text

0 Likes
Accepted solutions (2)
4,031 Views
8 Replies
Replies (8)
Message 2 of 9

Libbya
Mentor
Mentor
Accepted solution

You can use an individual attribute for each value you want displayed but set them all to be invisible.  Then add another attribute that will be visible and as the default value, add fields that reference each of the other attribute values.  See screencast.

Message 3 of 9

Anonymous
Not applicable

Perfect solution, thank you very much 🤗

0 Likes
Message 4 of 9

Anonymous
Not applicable

the attribute values ​​are not appearing on the display when inserted, any ideal?

0 Likes
Message 5 of 9

vinodkl
Mentor
Mentor

Hi @Anonymous 

 

Check if the attributes are not set to "invisible" in the block editor. Then run the command "ATTSYNC" to reflect the changes made to the attributes.

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 6 of 9

Anonymous
Not applicable

everything was done as in the tutorial, see my attached file

0 Likes
Message 7 of 9

Libbya
Mentor
Mentor
Accepted solution

Not quite everything was done the same as the screencast.  When I copied each attribute, I immediately edited the tag of the new attribute so I used a unique tag for each attribute (e.g. text1, text2, etc...).  Every attribute must have a unique TAG.  You have two attributes that with the tag XXX.  You also need to perform a single dynamic action in order to 'jump start' the block.  You can see that I do that by adding a stretch to the rectangle in the video.  Only one dynamic action needs to be performed in the lifetime of the block.  If you copy the block, you do not need to perform another dynamic action.  If you insert a new block using the INSERT command, you will need to perform a dynamic action to start the fields working.  See screencast.

0 Likes
Message 8 of 9

Anonymous
Not applicable

perfect, thanks for your patience, some things i still can't understand, like if i need something dynamic to make the block work, what is dynamic about standard autocad processes? example the ISO of valves. I would really like to learn how to create blocks similar to autocad that fit into lines, but my attempts are not working, any recommendation on where to learn I would be grateful.

0 Likes
Message 9 of 9

Libbya
Mentor
Mentor

Jumpstarting the fields in the block is a little hard to explain.  Each insertion of a dynamic block is given an anonymous name once some dynamic action is performed.  The fields within a block will not update until a dynamic action is performed.  Changing the value of an attribute is not a dynamic action.  Changing any dynamic parameter value works, changing visibility states, even just selecting a grip and then deselecting it without changing the value will work.

 

There are quite a few videos on Youtube covering the basics of Dynamic Blocks.  This forum is also a great place to learn.  

0 Likes