Another approach to assembly solver (A2plus)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Another approach to assembly solver (A2plus)
It is a silly sentence I used in the past to say good bye.... Forget it....
Re: Another approach to assembly solver (A2plus)
Hey Turro !! I am very glad to hear from you. I hope i see you here back on place in some time !
There is enough work waiting...
KBWBE
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
- manuelkrause
- Posts: 442
- Joined: Thu Jul 05, 2018 7:16 pm
Re: Another approach to assembly solver (A2plus)
No no, no problem at all. I just only needed to understand it.
O.k.: ...
I hope to "see you on the air" soon again! Dunno if it's correct english.
It reminds me of a beautiful Phil Collins' song... (where "in" is used instead of "on")
Re: Another approach to assembly solver (A2plus)
You're welcome. And thank you for the work you (and others) are doing.
That explains it. Thanks.It's not inside code ATM. During rework of Assembly 2 towards A2plus i messed out everything i did not need at this point, to avoid bugs. I will reimplement it in some time.
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Another approach to assembly solver (A2plus)
Hello, I have done a simple practice of connecting rod, piston, crankshaft. See https://forum.freecadweb.org/viewtopic. ... 10#p264078
Now what I would like to achieve is an animation. For example when I change the crankshaft angle using the python API with this command:
A2Plus automatically resolves the constraints. Maybe there is an A2plus API that allows you to solve the constraints. Attached image.
Thanks
Now what I would like to achieve is an animation. For example when I change the crankshaft angle using the python API with this command:
Code: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(-90,0,0), App.Vector(0,0,0))
Thanks
- Attachments
-
- FreeCAD_2018-10-24_09-08-55.png (133.43 KiB) Viewed 1764 times
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Another approach to assembly solver (A2plus)
Solved:dcapeletti wrote: ↑Wed Oct 24, 2018 12:05 pm Hello, I have done a simple practice of connecting rod, piston, crankshaft. See https://forum.freecadweb.org/viewtopic. ... 10#p264078
Now what I would like to achieve is an animation. For example when I change the crankshaft angle using the python API with this command:
A2Plus automatically resolves the constraints. Maybe there is an A2plus API that allows you to solve the constraints. Attached image.Code: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(-90,0,0), App.Vector(0,0,0))
Thanks
In python console:
Code: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(0,0,0), App.Vector(0,0,0))
from a2p_solversystem import SolverSystem
solver = SolverSystem()
solver.solveSystem(App.ActiveDocument)
Re: Another approach to assembly solver (A2plus)
If You are confortable in editing sources, try change in a2p_solversystem.pydcapeletti wrote: ↑Wed Oct 24, 2018 12:32 pmSolved:dcapeletti wrote: ↑Wed Oct 24, 2018 12:05 pm Hello, I have done a simple practice of connecting rod, piston, crankshaft. See https://forum.freecadweb.org/viewtopic. ... 10#p264078
Now what I would like to achieve is an animation. For example when I change the crankshaft angle using the python API with this command:
A2Plus automatically resolves the constraints. Maybe there is an A2plus API that allows you to solve the constraints. Attached image.Code: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(-90,0,0), App.Vector(0,0,0))
Thanks
In python console:
ThanksCode: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(0,0,0), App.Vector(0,0,0)) from a2p_solversystem import SolverSystem solver = SolverSystem() solver.solveSystem(App.ActiveDocument)
Code: Select all
SOLVER_CONTROLDATA = {
#Index:(posAccuracy,spinAccuracy,completeSolvingRequired)
1:(0.1,0.1,True),
2:(0.01,0.01,True),
3:(0.001,0.001,True),
4:(0.0001,0.0001,False),
5:(0.00001,0.00001,False)
}
Code: Select all
SOLVER_CONTROLDATA = {
#Index:(posAccuracy,spinAccuracy,completeSolvingRequired)
1:(0.1,0.1,True)
#2:(0.01,0.01,True),
#3:(0.001,0.001,True),
#4:(0.0001,0.0001,False),
#5:(0.00001,0.00001,False)
}
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Another approach to assembly solver (A2plus)
Thanks. If I like to edit and learn from the code, although I don't work with FreeCAD, I like to learn from it. I'll try what you say and make returns.Turro75 wrote: ↑Wed Oct 24, 2018 3:33 pmIf You are confortable in editing sources, try change in a2p_solversystem.pydcapeletti wrote: ↑Wed Oct 24, 2018 12:32 pmSolved:dcapeletti wrote: ↑Wed Oct 24, 2018 12:05 pm Hello, I have done a simple practice of connecting rod, piston, crankshaft. See https://forum.freecadweb.org/viewtopic. ... 10#p264078
Now what I would like to achieve is an animation. For example when I change the crankshaft angle using the python API with this command:
A2Plus automatically resolves the constraints. Maybe there is an A2plus API that allows you to solve the constraints. Attached image.Code: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(-90,0,0), App.Vector(0,0,0))
Thanks
In python console:
ThanksCode: Select all
App.ActiveDocument.Cigue__al_001.Placement = App.Placement(App.Vector(0,0,0), App.Rotation(0,0,0), App.Vector(0,0,0)) from a2p_solversystem import SolverSystem solver = SolverSystem() solver.solveSystem(App.ActiveDocument)
toCode: Select all
SOLVER_CONTROLDATA = { #Index:(posAccuracy,spinAccuracy,completeSolvingRequired) 1:(0.1,0.1,True), 2:(0.01,0.01,True), 3:(0.001,0.001,True), 4:(0.0001,0.0001,False), 5:(0.00001,0.00001,False) }
this should speed up the solving process (by reducing accuracy) increasing animation speedCode: Select all
SOLVER_CONTROLDATA = { #Index:(posAccuracy,spinAccuracy,completeSolvingRequired) 1:(0.1,0.1,True) #2:(0.01,0.01,True), #3:(0.001,0.001,True), #4:(0.0001,0.0001,False), #5:(0.00001,0.00001,False) }
I wonder what the result will be of connecting an animation module combined with an assembly module.
Greetings
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Another approach to assembly solver (A2plus)
Hi, I'd like you to look at this comment https://forum.freecadweb.org/viewtopic. ... 00#p264527 to see if it's possible to implement such functionality in A2Plus.
Thanks
Thanks
Re: Another approach to assembly solver (A2plus)
Hi,dcapeletti wrote: ↑Thu Oct 25, 2018 8:33 am Hi, I'd like you to look at this comment https://forum.freecadweb.org/viewtopic. ... 00#p264527 to see if it's possible to implement such functionality in A2Plus.
Thanks
i will have look for this problematic. I need similar thing too.
KBWBE
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench