Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
JieFK
Posts: 3
Joined: Sat Dec 01, 2018 11:01 am

Re: Another approach to assembly solver (A2plus)

Postby JieFK » Sun Apr 21, 2019 5:22 pm

Hi guys! Thanks for your time for programming this module.
I confess I have troubles to use it, mainly because I'm more used to TopSolid's workflow from work
I have a small question for you. I created a simple cube and a simple cylinder, then imported both in an assembly document. Now I want to put the cylinder on top of the cube by adding 2 constrains:
- "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)
I tried to create a datum axe on the cube but it does not appears on the assembly document)
Can someone please help me on this ?
Attachments
Screenshot_20190421_191531.png
Screenshot_20190421_191531.png (29.16 KiB) Viewed 1237 times
kbwbe
Posts: 881
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Sun Apr 21, 2019 6:34 pm

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.29, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
JieFK
Posts: 3
Joined: Sat Dec 01, 2018 11:01 am

Re: Another approach to assembly solver (A2plus)

Postby JieFK » Sun Apr 21, 2019 7:09 pm

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 1218 times
kbwbe
Posts: 881
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Mon Apr 29, 2019 6:33 pm

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.29, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
kbwbe
Posts: 881
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Wed May 01, 2019 8:57 pm

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 998 times
.
pencil-on-part.png
pencil-on-part.png (124.2 KiB) Viewed 998 times
.
Have fun !
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.29, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
User avatar
dcapeletti
Posts: 388
Joined: Wed Jul 23, 2014 2:27 pm

Re: Another approach to assembly solver (A2plus)

Postby dcapeletti » 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
User avatar
easyw-fc
Posts: 2689
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Tue May 21, 2019 8:14 pm

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: 33
Joined: Fri May 03, 2019 3:54 am

Re: Another approach to assembly solver (A2plus)

Postby toralf » Fri May 24, 2019 9:37 am

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
Posts: 881
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Sun May 26, 2019 11:53 am

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.29, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
User avatar
easyw-fc
Posts: 2689
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Sun May 26, 2019 1:06 pm

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]