Parametric Component Origin

Hi!

I am working on a project where I would like to feed tubes with different lengths and diameters into a system.

The system however requires the origin of the tubes to be at a specific place (in the bottom/middle of the tube).

Side view:
image
Top view:
image

Is there a way to paramatrize the model such that the origin will always retain this relative position when you change the length and diameter of the tube?

You need to align the geometry of the component relative to to its origin, this can be done with a Transform feature.
You need to calculate the correct X Y and Z offsets as half of your geometry size using expression, which I assume are also just some parameters.

Thank you for your response. I have tried to do this:

But I don’t know where to put the transform feature or if my expression is correct, because it does not work (the origin and product stay in place).

Cylinder + Boolean + Transform feature.

ParametricTube

ParametricTube.vcmx (262.2 KB)

1 Like

Thanks!! This saves me a lot of time

1 Like