Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

JieFK wrote: Sun Apr 21, 2019 5:22 pm - "Bottom Cylinder" plane with "Top Cube" plane (this one is easy and I got it right)
- "Cylinder" axe with "Cube" central axe (don't know how to create this one)
Hi @JieFK,
try to use "centerOfMass" constraint. This does exactly what you want. It aligns the faces and the central axes with one single constraint.
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
JieFK
Posts: 9
Joined: Sat Dec 01, 2018 11:01 am

Re: Another approach to assembly solver (A2plus)

Post by JieFK »

kbwbe Thanks, That did the trick.
Also on a more complex drawing, I used the same constrain, but not on the "thickness" plane, but rather on the two edges
Thanks again :)
Attachments
Screenshot_20190421_210240.png
Screenshot_20190421_210240.png (265.22 KiB) Viewed 2773 times
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

Hi Guy's,

a small bugfix release of A2plus is out: V0.4.18

What changed ?
- on Ubuntu 18.04 LTS based systems (so also Linux Mint 19 series), the file dialog for importing parts was working case sensitive.
So *.fcstd files have not been proposed, only *.FCStd files. The new version now is working case insensitive for the file extension.
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
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

Hi guy's,

a new version of A2plus is out: V0.4.19

What's new ?:

- a new constraint has been added to A2plus with version V0.4.19

axisPlaneVertical: make an axis or a cylinder vertical to a plane.
This the button:
Button-axisPlaneVertical.png
Button-axisPlaneVertical.png (913 Bytes) Viewed 2553 times
.
pencil-on-part.png
pencil-on-part.png (124.2 KiB) Viewed 2553 times
.
Have fun !
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
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Another approach to assembly solver (A2plus)

Post by dcapeletti »

I made an engine and assembly with some parts and a script to run the animation. You can see the gif and the repository of the project.

https://gitlab.com/dcapeletti/ejercicio ... A2Plus.gif

https://gitlab.com/dcapeletti/ejercicio ... %20tiempos
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Post by easyw-fc »

dcapeletti wrote: Mon May 20, 2019 11:37 pm I made an engine and assembly with some parts and a script to run the animation. You can see the gif and the repository of the project.

https://gitlab.com/dcapeletti/ejercicio ... A2Plus.gif

https://gitlab.com/dcapeletti/ejercicio ... %20tiempos
Hi, I just wanted to show the gif ;)
Image
toralf
Posts: 48
Joined: Fri May 03, 2019 3:54 am

Re: Another approach to assembly solver (A2plus)

Post by toralf »

Dear kbwbe,

I'm trying to get involved in the A2p WB.
Since I didn't wanted to highjack this thread, I started a new thread on getting into the code of A2p WB: Assistance in fixing issue in A2p WB needed
But HarryGeier suggested to contact you through this thread. It would be great if you could give me some assistance. If it is in this thread or in the above mentioned I don't care.
Thanks a lot
toralf
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

Hi @toralf,
toralf wrote: Fri May 24, 2019 9:37 am I'm trying to get involved in the A2p WB.
Thank you for your interest on A2plus.

Handling of transparency is still a work in progress and there are some issues.
When FC doc gets saved with transpareny off, all is ok,
but when FC doc gets saved with transparency on and FC
is closed and on the next call the A2P assembly is opened
the toggle of transparency doesn't work any more.
When switching to transparent mode of an assembly, the original colors/transparency values are saved to internal python data structures for recovery purposes, what you have probably already found when looking at a2plib.py.

Saving and closing the doc in transparent mode deletes the recovery structures and therefore the original transparency values get lost. Unfortunately ATM i do not know a working solution to prevent that. When there is some time, this part of code will be reworked again. Additionaly there seem still to be some issue of FC when loading transparent objects. Sometimes objects are shown non transparent after loading although obj.ViewObject.Transparency has a transparent value.
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
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Post by easyw-fc »

kbwbe wrote: Sun May 26, 2019 11:53 am Saving and closing the doc in transparent mode deletes the recovery structures and therefore the original transparency values get lost. Unfortunately ATM i do not know a working solution to prevent that. When there is some time, this part of code will be reworked again. Additionaly there seem still to be some issue of FC when loading transparent objects. Sometimes objects are shown non transparent after loading although obj.ViewObject.Transparency has a transparent value.
If you consider this workaround useful, I will make a PR for adding a Restore Transparency Button
phpBB [video]
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

easyw-fc wrote: Sun May 26, 2019 1:06 pm
Hi Maurice,
thank you for the PR, which i just merged to version V0.23. It is fore sure useful.

I also integrated a fix for this problem here: https://forum.freecadweb.org/viewtopic.php?f=3&t=36588

Thx a lot, Klaus
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
Post Reply