Yes, Please!(*) bloody-hell, this asks for a "Record Sequence" button: any idea how this could be done ?
Animation Add-On
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Animation Add-On
Re: Animation Add-On
Stuck again. I have a model in Assembly4 of an engine base and crankshaft. The master sketch is ok and I have linked the crankshaft to the master sketch. When I animate the model the crankshaft rotates until it is in its originally drawn position, then swaps end to end and continues to rotate for another 180 degrees, swaps end to end again and finishes the rotation.
Any ideas?
Any ideas?
Re: Animation Add-On
classical FreeCAD topological naming problem.
The good way to do that is to create an LCS that will be rotating w.r.t. the fixed engine (attach the LCS to the fixed one, and in the AttachmentOffset set the angle to the variable that drives the angle). Then, attach the crankshaft to the rotating LCS. Also, attach a sketch to the rotating LCS, and draw there a single line. Then, in the sketch drawing the piston movement, import as an external reference the line from the rotating sketch, and do your drawing.
https://forum.freecadweb.org/viewtopic. ... 06#p293179
Re: Animation Add-On
Still in trouble.
I have created a very simple model of a crank - no parts or bodies yet - just a model with variables and a master sketch with one line from the origin to a point 23 mm radius on the YZ plane, 30 deg acw from the Y axis. The variables are Angle_crank = 30 and R_main = 23. I selected the master sketch and in Map Mode I selected LCS_Origin as the attachment with mode Object's YZ plane. In the master sketch the new Z axis is along the line from the origin.
I then selected the model, created a new coordinate system LCS_crank with first attachment 'Vertex' - 'Sketch_master:Vertex1' and second attachment 'Line' - 'Sketch_master:Edge1' with mode 'Align O-Z-Y'.
When animated the line rotates as it should in the YZ plane but the axes swap over as the new Y axis passes the old Z axis.
If I do the same process with the sketch on the XY plane, everything works fine. However, my engine has the X axis as the crank rotation axis and a vertical Z axis, so the sketch is in the YZ plane.
What am I doing wrong?
I have created a very simple model of a crank - no parts or bodies yet - just a model with variables and a master sketch with one line from the origin to a point 23 mm radius on the YZ plane, 30 deg acw from the Y axis. The variables are Angle_crank = 30 and R_main = 23. I selected the master sketch and in Map Mode I selected LCS_Origin as the attachment with mode Object's YZ plane. In the master sketch the new Z axis is along the line from the origin.
I then selected the model, created a new coordinate system LCS_crank with first attachment 'Vertex' - 'Sketch_master:Vertex1' and second attachment 'Line' - 'Sketch_master:Edge1' with mode 'Align O-Z-Y'.
When animated the line rotates as it should in the YZ plane but the axes swap over as the new Y axis passes the old Z axis.
If I do the same process with the sketch on the XY plane, everything works fine. However, my engine has the X axis as the crank rotation axis and a vertical Z axis, so the sketch is in the YZ plane.
What am I doing wrong?
Re: Animation Add-On
OK. Will do.