Inconsistent Length Values in Dynamic Components – What’s Happening?

Hello everyone, I haven’t been around here for a while. I have a large library of dynamic components and attributes that I work with—specifically, they’re basically tubes. I extract data like length, etc.

In this case, as you can see, if you open the component window, it says the length is 600 mm, but if you measure it, it’s 900 mm. In fact, in the attributes (“distinta_lunghezza”) it’s also 900 (which is actually the correct value). Moreover, if I press Enter on the length value, it changes to 600! How can something like this happen?

here are some pics and the file

wrong pipe.skp (199.6 KB)

1 Like

If you modify the geometry manually it breaks the DC. Open the dc and adjust the geometry to the correct size, then exit and it should be correct. Or you can use a Ruby script to fix it:

what do you mean with manually? i only use the attribute on component options, or stretch (with the lock of direction) so that i can only modify that axe, and i do this all the time (me and all my team) and this never hapens

1 Like

The model you posted is not just the pipe, can you post just the broken pipe?

Manually edit the geometry - double click into the component to edit its length.

I can assure you — I’d even sign it in blood :sweat_smile: — that I never go in and modify them,I’m pretty strict about that.

You’re right, here it goes:

wrong pipe.skp (199.6 KB)

1 Like

Not sure how you got it, but it is the same error fixed by the above code.

wrong pipe - fixt.skp (199.4 KB)