Sketcher as kinetic amination, ruled by GUI

Show off your FreeCAD projects here!
User avatar
doul
Posts: 16
Joined: Fri Dec 25, 2020 4:14 pm

Sketcher as kinetic amination, ruled by GUI

Postby doul » Fri Dec 25, 2020 11:46 pm

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 745 times
menu2.py
(3.25 KiB) Downloaded 19 times
echelle_casse_iveco_v2.FCStd
(5.05 KiB) Downloaded 13 times
FreeBSD 12.2
kisolre
Posts: 3011
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher as kinetic amination, ruled by GUI

Postby kisolre » Sat Dec 26, 2020 11:00 am

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

Re: Sketcher as kinetic amination, ruled by GUI

Postby doul » Sat Dec 26, 2020 1:02 pm

Works for me without fully constrained sketch. The slider just rule a constraint among other, like drawn manually.
FreeBSD 12.2
kisolre
Posts: 3011
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher as kinetic amination, ruled by GUI

Postby kisolre » Sat Dec 26, 2020 4:02 pm

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
Posts: 2189
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Sketcher as kinetic amination, ruled by GUI

Postby Jee-Bee » Mon Dec 28, 2020 10:48 pm

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

Re: Sketcher as kinetic amination, ruled by GUI

Postby doul » Mon Dec 28, 2020 11:34 pm

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 424 times
Screenshot_2020-12-28_23-14-47.png
Screenshot_2020-12-28_23-14-47.png (20.44 KiB) Viewed 424 times
hook_lift.py
(10.27 KiB) Downloaded 7 times
polybenne0.1.FCStd
(4.4 KiB) Downloaded 5 times
FreeBSD 12.2