Sketcher as kinetic amination, ruled by GUI

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
doul
Posts: 70
Joined: Fri Dec 25, 2020 4:14 pm

Sketcher as kinetic amination, ruled by GUI

Post by doul »

hello !

Just an other use of sketcher making kinetics animation, ruled with a GUI slider.

I start from https://wiki.freecadweb.org/PySide_Inte ... xamples/fr

Howto :arrow:

- open FCStd file
- enter stekcher, edit sketch
- in python console type : execfile("/home/doul/menu2.py") <with your own file path>
- slide the slider !

Capture d’écran_2020-12-26_00-21-14.png
Capture d’écran_2020-12-26_00-21-14.png (212.25 KiB) Viewed 1561 times
menu2.py
(3.25 KiB) Downloaded 73 times
echelle_casse_iveco_v2.FCStd
(5.05 KiB) Downloaded 46 times
FreeCAD is cool 8-)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher as kinetic amination, ruled by GUI

Post by kisolre »

Cant test right now but shouldnt the sketch be fully constrained? In the screenshot it is not green.
User avatar
doul
Posts: 70
Joined: Fri Dec 25, 2020 4:14 pm

Re: Sketcher as kinetic amination, ruled by GUI

Post by doul »

Works for me without fully constrained sketch. The slider just rule a constraint among other, like drawn manually.
FreeCAD is cool 8-)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher as kinetic amination, ruled by GUI

Post by kisolre »

After checking the sketch, you have 1 DOF which is the relative position piston/cylinder. As it should be :)

Please edit the subject of your first post to fix the typo - aNiMation instead of aMiNation.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Sketcher as kinetic amination, ruled by GUI

Post by Jee-Bee »

abdullah wrote: Sat Oct 31, 2020 8:26 am ...
something for you
User avatar
doul
Posts: 70
Joined: Fri Dec 25, 2020 4:14 pm

Re: Sketcher as kinetic amination, ruled by GUI

Post by doul »

More serious project : truck hook lift simulation.

https://duckduckgo.com/?q=hook+lift+sys ... &ia=images

left blue line is a hydraulic cylinder, right blue lines are dump body, center green hook lift system

I loaded file "hook_lift.py" with macro menu.

This simulation helps me get sized all arms, check cylinder stroke and dump body max load angle 8-)
Screenshot_2020-12-28_23-13-59.png
Screenshot_2020-12-28_23-13-59.png (179.26 KiB) Viewed 1240 times
Screenshot_2020-12-28_23-14-47.png
Screenshot_2020-12-28_23-14-47.png (20.44 KiB) Viewed 1240 times
hook_lift.py
(10.27 KiB) Downloaded 52 times
polybenne0.1.FCStd
(4.4 KiB) Downloaded 49 times
FreeCAD is cool 8-)
Post Reply