OficineRobotica wrote: ↑Fri Jan 17, 2020 5:24 pm
you simulate the rotation/travel distance for the clamp axle ... Could you please give a step by step explanation on how you implemented that?
The idea is to create an LCS in Model that you can rotate and then attach the Part LCS to it. This is only one way to do this but may not be the best, still experimenting:
1. Using Assembly4 > Add variable named "distance" with a minimum default value. When creating the master sketch make sure you have an edge that defines a direction and length along the threaded rod as shown in Picture1 of my earlier post. Use Expressions to constrain this edge length with Variables.distance.
2. After creating the threaded rod Part, create an LCS attached to the end of the threaded rod with concentric mode. This will align the LCS Z-axis with the rod centerline. Using the LCS > Attachment Offset, offset it in the Z-direction the proper amount to locate it at the junction between the rod and lever.
3. Do the same for the lever.
4. In Model, create an LCS and attach it with concentric mode to align it with the rod centerline. In this case, I used a circular edge where the rod threads into the tee. Offset it to its proper location in the Z-direction along the rod centerline.
5. Add a variable named "threaded_distance" which defines the change in threaded length from a reference point on the rod to the nut as shown in video_clamp4.gif in my earlier post. Add a variable "rod_angle" that defines the amount of rotation for a change in "threaded_distance". In this example I arbitrarily used one rotation for 10 mm (thread pitch) as shown in the same video.
5. Expand the Attachment Offset in the property panel of the LCS created in 4. and add Variables.rod_angle to the Angle expression. The Axis property should be (0,0,1), the Z-axis of the LCS.
6. Link the Part LCS's to the Model LCS using Assembly4 > Insert a link... to assemble these parts.
7. Check by changing the Model > Variables > distance or use the Animator.
See also
https://forum.freecadweb.org/viewtopic. ... 80#p354139 for the basics.
I stripped out all but the rod, lever, and tee from the assembly and have attached it for your educational purposes only. One caveat: note that I have attached LCS's to part edges for convenience (being lazy) but would usually recommend attachment only to the master sketch when possible.