Dynamic Area Field in Block

Dynamic Area Field in Block

SG68
Contributor Contributor
2,910 Views
6 Replies
Message 1 of 7

Dynamic Area Field in Block

SG68
Contributor
Contributor

This might be simple, but so might I be....

 

I have a very simple block that is a hatched rectangular shape, with dimensions 10 x 1.

 

I have added an Attribute to the block to show its area, using ATTDEF and choosing a Field, object Hatch, property Area.

 

This works fine when I insert the block to a natural scale. For example, if I insert the block at a scale of 1 it displays the attribute area of 10, if I scale the block at 2 it displays the area correctly as 40.

 

The problem comes if I try to give the block a stretched scale. For example, if I insert the block at an X Scale of 2, Y scale of 1, it should calculate an area of 20, but instead it still shows the area to be 10.

 

In fact, if I give the block any stretched scale at all, the Attribute for area stays at 10.

 

Anyone out there less simple than me can help?

 

 

0 Likes
Accepted solutions (2)
2,911 Views
6 Replies
Replies (6)
Message 2 of 7

h_s_walker
Mentor
Mentor

You need to do a regen. Fields do not automatically update when the geometry they're associated with changes.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 3 of 7

SG68
Contributor
Contributor

Yes, the Regen works if the block is to a natural scale but not if it is stretched

0 Likes
Message 4 of 7

h_s_walker
Mentor
Mentor

Is your hatch associated with the rectangle?

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 5 of 7

SG68
Contributor
Contributor

Yes

0 Likes
Message 6 of 7

h_s_walker
Mentor
Mentor
Accepted solution

If it's a simple rectangle what happens if you change the field to give you the area of the rectangle?

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 7 of 7

SG68
Contributor
Contributor
Accepted solution

That didn't work initially, until I changed the block into a dynamic block that can be stretched, rather than a standard block that I gave a different X/Y scale, but then as you suggested I applied the field to the area of the polyline rather than the area of the hatch and it works.

 

Thanks for your help

🙂

 

0 Likes