Different Formulas within 3 similar dynamic blocks

Different Formulas within 3 similar dynamic blocks

jim3thornton
Advocate Advocate
448 Views
5 Replies
Message 1 of 6

Different Formulas within 3 similar dynamic blocks

jim3thornton
Advocate
Advocate

I am trying to create a dynamic block for a shear walls ... I am anticipating that we will start with 3 shear wall types that will have 3 different formula.

 

To test this I have created a 4 value attribute.

 

Wall Type  - Manual (first version SW-1)

Wall Number - Manual 

Wall Length - Field 

Shearvalue  - Formula (Length * 20) .... These was the original formula.

 

I want to be able to drag this block to the Tool Palette 

 

I have been able to drag the first one to the tool palette.  And then I save the file as (-01 and and also -02) so I can then change the Attribute Value to SW-2 and SW-3.  I renamed the blocks in both circumstances and changed the default value of the WALL TYPE to SW-2 and SW-3.

 

In regards to the formula I am having to edit the Attribute Editor ... once it is open I am editing the field by changing the formula to ( length * 30 ) and (length * 40) respectively .... once this is done I have then drag the blocks to the tool palette.

 

To test these blocks, I open a new drawings and drag and drop the 3 block types ... unfortunately the last two are retaining the formula of the first one I had created.

 

Is it possible to modify the original block / formula as I have described above?  

 

or do I need to create the 2nd details from scratch?

 

My goal is to have pre-determined shear wall dynamic blocks that the team can use ... but I do not them to have to modify the formulas initially when they add them to the drawings ....

 

 

 

 

0 Likes
449 Views
5 Replies
Replies (5)
Message 2 of 6

Libbya
Mentor
Mentor

Post the block.  

0 Likes
Message 3 of 6

Libbya
Mentor
Mentor

I reread your description.  I believe you can do what you are trying to do.  I wonder if you saved the source files for the tool palette prior to trying out the tools. 

0 Likes
Message 4 of 6

jim3thornton
Advocate
Advocate

I have attached the file with the blocks ...

 

0 Likes
Message 5 of 6

s.borello
Advisor
Advisor

After you edit any attribute within a block, you must run the command "ATTSYNC".  This will updated your block and new formulas will be seen in your drawing. 

0 Likes
Message 6 of 6

jim3thornton
Advocate
Advocate

I tried that but I did  not see a change / update of the value 

 

Perhaps it is because the formula is within an attribute, which is within a dynamic block.

 

So found that by "editing block" and editing the default value of the attribute, which is a formula that includes a field and an integer and save ... that all future blocks of these types will be correct ...  just that I can not update past blocks  

 

 

0 Likes