Stress collision cylinder cube

Hello

I have an assembly with 2 parts which roughly have the shape of a cylinder and a cube. I don't necessarily want to set a constraint between these parts, but I just want them to stay placed so that the cylinder doesn't fit into the cube.

If I place a constraint with a distance of 0 between the face of the cylinder and the cube, I will be forced to select a particular face of the cube, and so if later I move the cylinder around the cube or rotate the cube on itself, the constraint will no longer work and I will have to change the face of the selected cube...

On top of that, I don't necessarily want them to be glued, I just don't want it to collide, so I would need a distance constraint greater than 0 and not equal to 0.

Would there be a way to simply tell 2 pieces not to touch each other? without necessarily setting a distance for them?

Hello

At first glance it looks like collision detection

http://help.solidworks.com/2016/French/SolidWorks/sldworks/t_Collision_Detection_SWassy.htm

But it's only going to work for manual movement. If the displacement comes from a modification of the constraints, I have no solution

1 Like

 SW is a customizable software

so if you want to put a component in an assembly

it will have to create constraints 

Nothing prevents you from creating constraints via the axis of the cylinder  on planes

So create 3 planes and it's these three planes that will be the ref of this cylinder

 

2 Likes

Ok, well that's what I had already seen elsewhere, it doesn't suit me too much, too bad.

 

Otherwise, still within the constraints, is it possible to center one room in the center of another?

I have a rail with a carriage, and a ball screw with its nut, I would like to make the part that will sandwich the carriage and the nut, but since the nut is wider than I am the carriage, I would like the carriage to be centered in relation to the flat face of the nut collar .

Can I do this without using the distance constraint and having to put an approximate measurement?

For the first case, you also have the limit distance constraints in the advanced constraints.

 

For the second point, you can create a middle plane by selecting the 2 opposite sides of your cart. You will then have to put a conincidence between this plane and the axis or plane passing through the center of the nut.

1 Like

post a screenshot of your problem

for a better understanding of the thing

Thank you

@+

You can go into the advanced constraints and then choose "slide" or "symmetrical" according to your needs

 

With slide, you choose two sides of each piece (or two sides of a cube and the face of a tube) and then it centers.

 

With symmetrical, you need a plane of symmetry (3D face or plane) and two sides of the other part

1 Like