assembly 3: connection to parallel groove in an elliptical plate

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
eefweenink
Posts: 40
Joined: Fri Oct 14, 2022 6:23 pm

assembly 3: connection to parallel groove in an elliptical plate

Post by eefweenink »

I have this plate with an elliptical groove in it. Now I want to make an assembly (I choose assembly 3 for that. So maybe there is a subforum where this question should be placed?)

The rectangle plate is attached into the groove of the elliptical plate (see image).
Schermafbeelding 2022-10-21 om 22.45.54.png
Schermafbeelding 2022-10-21 om 22.45.54.png (51.59 KiB) Viewed 1374 times
When moving one of the plates, both should stay in the same plane, but be free to move, sliding the cylinder around in the groove.
I think I tried about all types of connection, but no succes yet.
I was hoping that connecting a line/point on the cylinder to the edge of the elliptical groove would do the job, but no luck.

Attached in zip the files I use to test the available connection types.
Hopefully some of you might know a way, how to find a solution for this.

regards, Eef
Attachments
ellipseconnectionasm3.zip
(108.91 KiB) Downloaded 30 times
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by chrisb »

Moved to Assembly forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by jpg87 »

eefweenink wrote: Fri Oct 21, 2022 8:57 pm I was hoping that connecting a line/point on the cylinder to the edge of the elliptical groove would do the job, but no luck.
hello, I'm afraid that for the moment there is no solution available :
- the PointOnLine constraint requires the line to be a segment or a circle ;
- the PointsDistance constraint with the center of the board would require expressing that distance mathematically as a function of the angular position around that center...
- but a freedom of movement in the groove which would require a tangent of the cylindrical stud against a sidewall of the groove is not yet supported (to my knowledge).
My website : http://help-freecad-jpg87.fr updated 2023/11/06
eefweenink
Posts: 40
Joined: Fri Oct 14, 2022 6:23 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by eefweenink »

jpg87 wrote: Sat Oct 22, 2022 7:46 am hello, I'm afraid that for the moment there is no solution available :
Maybe I have to go to one of the other workbenches for assembly?
dtay
Posts: 20
Joined: Fri Jan 17, 2020 12:52 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by dtay »

HI,

Perhaps this will achieve the result you are looking for? https://wiki.freecadweb.org/Tutorial_KinematicSkeleton
eefweenink
Posts: 40
Joined: Fri Oct 14, 2022 6:23 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by eefweenink »

dtay wrote: Sat Oct 22, 2022 3:38 pm Perhaps this will achieve the result you are looking for? https://wiki.freecadweb.org/Tutorial_KinematicSkeleton
At first glance I would say, the quest may still be: "how to let something slide along an elliptical curve".
But I will study this. I try to find a way.

PS: It made me scroll through the SolveSpace tutorial, and my eye fell on this:
"Other mechanisms with linear slides may have more interesting geometric behavior. For example, we can model an elliptical trammel by constraining two points on a line to lie on the x and y axes. Any other point on that line will trace out an axis-aligned ellipse:"
linkage-ellipse.png
linkage-ellipse.png (13.9 KiB) Viewed 1191 times
Thank you for pointing me there. Regards, Eef
eefweenink
Posts: 40
Joined: Fri Oct 14, 2022 6:23 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by eefweenink »

I wonder if it is possible working with "hidden" objects.
Maybe it is possible to create an elliptical movement, using a sliding rod connected to vertical and horizontal horizon (see image above).
And connect the point of the rod to the cylinder sliding trough the groove.
That way it looks like the cylinder is kept in place by the groove, but in fact it is done by the hidden object.

Any experience/ideas/suggestions?
dtay
Posts: 20
Joined: Fri Jan 17, 2020 12:52 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by dtay »

I fiddled around with this for a while and found a solution.
Ellipse_Skeleton_Sketch.FCStd
(28.36 KiB) Downloaded 34 times
Find theses formulas inside the "Line" property -> Start -> x & y dialogues.

Code: Select all

Ellipse.MajorRadius * cos(atan2(Wire001.Shape.Vertex3.Y; Wire001.Shape.Vertex3.X)) # Line start position for X
Ellipse.MinorRadius * sin(atan2(Wire001.Shape.Vertex3.Y; Wire001.Shape.Vertex3.X)) # Line start position for Y

https://youtu.be/GBIjRhXQca0


*edit, code typo
eefweenink
Posts: 40
Joined: Fri Oct 14, 2022 6:23 pm

Re: assembly 3: connection to parallel groove in an elliptical plate

Post by eefweenink »

dtay wrote: Sun Oct 23, 2022 5:33 pm I fiddled around with this for a while and found a solution.
Looks great. Now I have to learn, how this works, and do it myself (but that is the nice part :-))

Thank you very much. Eef
Post Reply