Solidworks: Dynamic Text

Hello

I would have liked to know if it was possible in a text (Dans une esquisse) to recover the value of a dimension?

Because currently the only way I've found is to go through a custom property that gives the value to the text and an equation and the equation then gives the value to the dimension. But it's really not practical.

 

Thank you.

When editing your text block you click on the dimension concerned.

This inserts the rating with the tolerances if he has any.

Thank you, but I don't see how.

I forgot to mention that it was in a 3D room (Not in a drawing!). And so when I insert a text into a sketch, I don't have access to the dimensions or the equation.

sorry, I don't have a solution in this case

Hello

Try to see with this formula: the rib in bold and the name of the piece in italics. It should work...

D2@Esquisse1@0991240-1.SLDPRT

When writing the formula it is written in normal. I just put you in different to better understand ..

Regrade my piece is in 2016 and if you change the Ø or the ep or the Lg the sketch changes automatically...


tu_o.sldprt
2 Likes

I had to change my part in the previous post...

1 Like

Thank you, but which version of SolidWorks are you on? Because I don't really have the expected result...

Save the piece and it's possible that the formula lost the link. If you go to configuration specific property (in my room) desigantion; it is there. Copy it and paste it back into the sketch and then it will work... otherwise it's

Ø"D1@Esquisse1@Tu Ø.sldprt"x"D5@Extru.-Mince1@Tu Ø.sldprt" Lg "D1@Extru.-Mince1@Tu Ø.sldprt"

1 Like

And otherwise for your piece, when you create your sketch and put your text in it, you paste the text of your function side or you link it directly. If ever put your piece with what you want and I'll look ..

1 Like

Have you tried a CTRL-Q to get it to find the link??? Otherwise  I made you a 2nd piece where the text points directly to the specific properties of the configuration. you can do the same thing with your piece... After modifying the sides you must not forget to rebuild with the two-color light or CTRL-Q


tu_o_-_2.sldprt
1 Like

Here is another tube where the text follows when you change the ribs except that this time if I used the winding function to do it...


tu_o_-_3_avec_degaufrage.sldprt
1 Like

Thank you, it works! Indeed it must have been a problem of reconstruction.

On the other hand, before I validate as a correct answer, do you know if it is possible to indicate a two-digit value? (For example, Ø76.10 instead of Ø76.1 or Ø76.00 instead of Ø76).

 

Yes, just go to the bottom right of the screen, there is something with the units, then there you  can modify.

It's custom or MMGS or something like that....

Or otherwise, tools==>options==>document properties and then units.

Thanks, but I'm already in 2  or even 3 digits, but the display remains only on the minimum digit possible.