did you try the "Export" option of the animation ? In there, you choose your file with .mp4 or .gif extension, and it will be rendered to the file. To write mp4-s, The package "cv2" needs to be installed (sorry, I don't remember how that's done, I didn't write that part). Else, you can write as animated GIF.
V0.20/Assembly4 Challenge--Creo Motorbike
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #6
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #6
Thanks for reminding me of that Assembly4 animation option. I completely overlooked that. Piece of cake.
I updated the video which is much smoother now but still quite slow.
"It is a poor workman who blames his tools..."
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #6
Check this https://drive.google.com/file/d/1Gqm51D ... sp=sharing
I increased fps of your video from 10 to 30 using ffmpeg.
I'll delete the video after you download it.
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #6
Thank you. Now I know it can be done. That would be a nice option in Assembly4.
"It is a poor workman who blames his tools..."
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #7
The cam and drive chains were added this past week after a little research and trial & error. I have modeled roller chains in the past (V0.16) but was never quite satisfied with the accuracy of alignment as discussed in this earlier post: https://forum.freecadweb.org/viewtopic. ... 18#p142318 AFAIK you cannot use a Draft > PathArray to directly (and easily) assemble a roller chain because only one point on the chain link can be aligned with the path. For straight sections it is OK but not for arcs or at the transition between an arc and tangent line.
Assembly4 offers a couple of different approaches that yields an exact chain assembly alignment rather than the approximate work-around shown in the above post. The two Assembly4 processes are described in the following image captions:
.
I tried several other approaches using the PathArray for LCS's for example but they were not visible to Assembly4. Also tried a path array of pin bodies with their default LCS but again the individual links were not visible to Assembly4. Creo apparently has a tool to align small groups of objects to a path which would be helpful. It would also be helpful if you could align two points on an object with the path array for this purpose. Any feedback on alternative approaches would be appreciated.
If anyone is interested in the chain models as presented please PM me and I will place the two files on Dropbox.
Assembly4 offers a couple of different approaches that yields an exact chain assembly alignment rather than the approximate work-around shown in the above post. The two Assembly4 processes are described in the following image captions:
.
I tried several other approaches using the PathArray for LCS's for example but they were not visible to Assembly4. Also tried a path array of pin bodies with their default LCS but again the individual links were not visible to Assembly4. Creo apparently has a tool to align small groups of objects to a path which would be helpful. It would also be helpful if you could align two points on an object with the path array for this purpose. Any feedback on alternative approaches would be appreciated.
If anyone is interested in the chain models as presented please PM me and I will place the two files on Dropbox.
Code: Select all
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.28774 (Git)
Build type: Release
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods:
* Assembly4 0.11.10
* fasteners 0.3.41
* fcgear 1.0.0
"It is a poor workman who blames his tools..."
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #7
Another post to bookmark, thanks!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #7
absolutely marvelous! would you be open to sharing the project files? Seems like cool splashcreen material.
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #7
This was asked before (see above), but the plans are copyrighted.adrianinsaval wrote: ↑Thu May 19, 2022 1:18 pm absolutely marvelous! would you be open to sharing the project files?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #8
Several "free-form" bodies have been added to the motorcycle assembly. No dimensional drawings are provided for these parts so they must be created in-context pretty much free hand. For those new users, the following images capture what basic PartDesign tools and how some of this was done for the exhaust pipes and gas tank.
.
The panelling or fairing for the rear wheel mud guard is about the only component left before we can call it complete. I will likely have to learn the Curves workbench for that task which I look forward to.
Before that, I want to check and see if the completed rear wheel assembly articulates as it should and there are no issues with clearances at the extreme of vertical travel. I'll include an Assembly4 GIF if I can get it all to work in the next post.
.
The panelling or fairing for the rear wheel mud guard is about the only component left before we can call it complete. I will likely have to learn the Curves workbench for that task which I look forward to.
Before that, I want to check and see if the completed rear wheel assembly articulates as it should and there are no issues with clearances at the extreme of vertical travel. I'll include an Assembly4 GIF if I can get it all to work in the next post.
Code: Select all
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.28774 (Git)
Build type: Release
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods:
* Assembly4 0.11.10
* fasteners 0.3.41
* fcgear 1.0.0
"It is a poor workman who blames his tools..."
Re: V0.20/Assembly4 Challenge--Creo Motorbike (work in progress) Update #9
Whenever you are creating a complex assembly it is worthwhile to check that parts do not collide especially for those that have to move as in this motorcycle example. That is why it is important that the model be fully parametric and robust enough to withstand the dimensional changes describing any articulation of components. In this motorcycle model, the rear suspension sub-assembly including the drive chain must be able to move vertically in a properly constrained manner so that you can check for collision at the extreme limits of motion.
The following images present a method for doing this using global variables, expressions, and the Assembly4 animator.
What you may notice in the video is that the upper bound of the suspension is a collision of the rear tire with the taillight and the lower bound is a collision with the chain and frame. What was a bit surprising to me, not knowing much about independent suspensioned motorcycles, is that the center distance between the chain sprockets is not constant. Upon closer look notice that the chain must rotate about a different pivot (drive sprocket) than the rear suspension which explains why the chain must have some slack or sag so that it does not bind.
This video was created with the Assembly4 Animator > Export function.
The following images present a method for doing this using global variables, expressions, and the Assembly4 animator.
What you may notice in the video is that the upper bound of the suspension is a collision of the rear tire with the taillight and the lower bound is a collision with the chain and frame. What was a bit surprising to me, not knowing much about independent suspensioned motorcycles, is that the center distance between the chain sprockets is not constant. Upon closer look notice that the chain must rotate about a different pivot (drive sprocket) than the rear suspension which explains why the chain must have some slack or sag so that it does not bind.
This video was created with the Assembly4 Animator > Export function.
Code: Select all
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.28918 (Git)
Build type: Release
Branch: master
Hash: e1f2685734
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods:
* Assembly4 0.11.10
* fasteners 0.3.41
* fcgear 1.0.0
"It is a poor workman who blames his tools..."