Reclaim extrusion length to the surface

Hello
I have an extrusion to the surface and I would like to retrieve the value of the extrusion to put it in the properties of the part (for the bill of materials)
I can do it with a blind extrusion, but not if I do it all the way to the surface

Thank you

Hello, you just need to add a reference dimension that you can look for in your properties or room family table etc.

2 Likes

Hey, I just tried, I can add a dimension in the assembly but I can't do anything with it. Not visible in property listings.

Hello;
If your extrusion is measurable, why not create it in " One-Eyed "?

1 Like

Hello
Maybe the inlet surface of the extrusion is not flat?

Thank you for your answers

  • for the dimension, I can add one but you can't use it in the properties, it's a DimXpert of type " TXD " and it doesn't take its value
  • If I do an extrusion to the surface it's precisely so as not to use the blind function, otherwise I don't see the point
  • The inlet surface is flat and it doesn't matter, the part must have a total length

How is your " A " part positioned in relation to "B " part ... randomly?with a distance constraint (who says constraint says dimension)?.. Other?

The principle of extrusions " to the next surface " is precisely that you don't have to dimension the surface, or if the surface in question is not flat.

That said, you needed to be able to use the " sensors " to use them in a property and make it appear in your bill of materials.
https://help.solidworks.com/2021/french/solidworks/sldworks/HIDD_MEASURE.htm
https://help.solidworks.com/2021/french/solidworks/sldworks/c_Sensors_OH.htm

4 Likes

That's exactly what I was going to say @Maclane ! Measurement sensors seem to me to be the perfect solution to do this.
I've already used it to output an arc press value: it works pretty well!!

1 Like

Just make sure that the updates of the sensor values are done well.

Hello, otherwise there is a simple and effective solution that I don't see proposed here. Just create a new sketch on the plan of your extrusion, draw a line that goes from one end of it to the other, and bam! You have a value that you can call (e.g. D1@Esquisse3).

No, you have to select reference dimensions for this to be usable.
Capture 1

Indeed, but @cedric_keiflin is not looking for how to transform a dimension into a reference I think he knows how to do it, he is looking for how to link one to his extrusion function which has no fixed value since it is linked to a distance from a surface.

Example:
My green body is an extrusion " to the surface "
image

I create a sketch on a plane parallel to the extrusion, I draw a line on it and I put a driven dimension on it, this gives us the value D1Sketch4 callable

1 Like

Bjr I will say that it's normal because typically it could be left shapes if flat use up to vertex and it will work with value!

Thank you for your answers

The reference rating meets my needs
I'm going to test the history of measurement sensors!
For the sketch line that we dimension next, I had already used it :slight_smile:

I think it's a bit late to answer you... But if it can help you in the future, there's another technique that's pretty good: equations.

In global variables, you create one and in value you choose " measure "

All you have to do is choose your faces to measure and presto, it's done.
You still have to remember it in your 2D plan, but it's quite easy to do since it appears in the drop-down menus of " Linked to property " → " Model found here " → " Selection "

Small bonus advantage: if you have a config where your distance evolves, the result of the equation evolves too!

2 Likes