Exploded assembly animation

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Exploded assembly animation

Post by JMG »

Hi!

To take a rest of the sheet metal stuff I've coded this little workbench, preview video here:

https://www.youtube.com/watch?v=1KZB50rTWpE

I'm currently finishing the code, I'll upload it together with a new tutorial video once I get everything to work.
Then, you should be able to explode several objects at the same time, rotate along trajectory and more.

What do you think?


Javier.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Exploded assembly animation

Post by JMG »

As promised, the video:

https://www.youtube.com/watch?v=1hrz7jt_JZw

I'll try to create a repository in github, so you can see the files without downloading ;) -> Done!:

https://github.com/JMG1/FreeCAD_Explode ... nWorkbench
Last edited by JMG on Tue Jul 14, 2015 3:21 pm, edited 1 time in total.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Exploded assembly animation

Post by microelly2 »

thank you, good job

will you animate the unfold process too? I think this is the next powerful feature.
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Exploded assembly animation

Post by JMG »

Thanks, microelly!
will you animate the unfold process too?
I would be very happy even if I manage to draw the unfolded projection only :lol:
I think this is the next powerful feature.
You're right. I've code this small feature to teach myself about workbench creation. The next target is the sheet metal workbench, but if something interesting comes along the way, it can have a place too.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Exploded assembly animation

Post by microelly2 »

JMG wrote: I would be very happy even if I manage to draw the unfolded projection only :lol:
I have inspected your first code to create a folded object. This program can already become animatable. ;)
timthelion
Posts: 15
Joined: Thu Jan 08, 2015 12:08 am

Re: Exploded assembly animation

Post by timthelion »

Hey! This is great. I noticed one small bug, however. Here is the fix:

Code: Select all

*** ExplodedAssemblyAnimation/EACommands.py	2015-01-08 00:34:16.538308999 +0000
--- .FreeCAD/Mod/ExplodedAssemblyAnimation/EACommands.py	2015-01-08 00:33:51.634308999 +0000
***************
*** 117,121 ****
        # ADD ROUTE SKETCH
        SelObjName = "Rt_" + Gui.Selection.getSelection()[0].Label
-       TD.RouteName = SelObjName
        SelFace = Gui.Selection.getSelectionEx()[0].SubObjects[0]
        faceCom = SelFace.CenterOfMass
--- 117,120 ----
***************
*** 123,126 ****
--- 122,126 ----
        V_0 = ( P_A - faceCom ).normalize()
        NewRoute = AAD.addObject("Sketcher::SketchObject", SelObjName)
+       TD.RouteName = NewRoute.Name
        RouteFolder = AAD.getObject( "EA_Routes" )
        RouteFolder.addObject( NewRoute )
You set the routeName to the name of the NewRoute, because addObject renames objects that are given names with spaces in them.
PS-europe
Posts: 3
Joined: Fri Jul 10, 2015 8:58 pm

Re: Exploded assembly animation

Post by PS-europe »

Hallo Guys,
i would like to made some exploded assambly animations. I have download the zip file and bring it zo the free cad folder.
I have effort it but it dos not work with my parts, there are some fault messages.

Please help i need it for my company.

Regards Gerhard

sorry, my english is not well enough
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Exploded assembly animation

Post by JMG »

Hello PS-europe.

With the little info that you provide is impossible to tell what could be wrong.
Please, post the error messages here or even better, attach the fcstd file where they happen.

Javier.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
PS-europe
Posts: 3
Joined: Fri Jul 10, 2015 8:58 pm

Re: Exploded assembly animation

Post by PS-europe »

Hello Javier,

I will do it at the evening.

cheers and thank you for the responce
PS-europe
Posts: 3
Joined: Fri Jul 10, 2015 8:58 pm

Re: Exploded assembly animation

Post by PS-europe »

This is an infrared heating element with mounting plate on the concrete sealing. I would like to show my clients the steps of the product fixing on the sealing and the layers of the element. If I choose a part and it works just, I can set the path only in the horizontal axis. perpendicular to the surface is never. Or will it showed me images this following error:

Wrong selection

please help, what I am doing wrong?
Attachments
Explusionszeichnung V10 test explusion.FCStd
(380.18 KiB) Downloaded 361 times
Post Reply