What is the constraint to follow a "bump"?

Hello

I would like a component that can move perpendicular to another to follow its surface according to their contours:

With what constraint(s) can I do this?

Edit: I specify that the yellow piece is flexible in the same direction of travel as the green piece, and therefore that basically the 3 lower vertices of the green one are potential contact points and must be able to determine its position on the surface of the yellow piece.

Does this have anything to do with the subject of magnets?

1 Like

Same project, but these 2 components are not magnetized, they are in contact by pressure (a spring at the bottom of the green part).

Even if indeed it would be a possible method to simulate magnets :wink:

See trajectory constraint:
SLDWORKS_7TIu20OLCb
another constrained cam possibility (depending on the project)

2 Likes

I'm going to need lessons to understand these 2 constraints...
Came seems to be what I need but no way to select " valid entities"... I don't understand what he wants.
Trajectory is not better, even when I manage to configure the parameters to validate without error, my components become completely frozen...

Hello @Sylk

It's clearly a cam that you want to draw.
So logically we should rather start with the cam constraint

The problem is I have the impression that it's not possible with my piece and its profile...
From the little I understand, all the faces must be tangent. Except that my part is not a simple extruded profile, and if I have to have fun rounding each edge... Especially since the green coin won't go all the way around, I just want it to slide on " one " side.

The cam constraint will not be suitable since it requires tangent connections.
On the other hand, the trajectory is a solution, if the proposed illustration is accurate.

You will only have to generate a sketch with the offsets that go well on some entities (12 mm on the figure below)...

image

Jointed assembly in SW2022 version.
ContrainteCameSW.zip (132.3 KB)

1 Like

I was also thinking of a cam

For a cam constraint you need a closed profile, without sharp angles. And for the cam profile you need a part of a circle.
Example:
image
So either modify the profile of the part or start with a trajectory constraint. (see @m_blt's reply)

1 Like

Thank you for these leads.

Let's say that where it gets a little complicated is that the " dents " are actually on flexible " tabs " that need to be pinched to be able to dislodge and slide the part. The " counter-cam " must therefore follow the deformation of the profile before sliding on its surface.

It's a bit tricky to draw a trajectory on a flexible profile, isn't it?