## Another approach to assembly solver (A2plus)

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

### Re: Another approach to assembly solver (A2plus)

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)
Attachments
Screenshot_20190421_191531.png (29.16 KiB) Viewed 1450 times
kbwbe
Posts: 957
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

### Re: Another approach to assembly solver (A2plus)

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
JieFK
Posts: 5
Joined: Sat Dec 01, 2018 11:01 am

### Re: Another approach to assembly solver (A2plus)

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

### Re: Another approach to assembly solver (A2plus)

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

### Re: Another approach to assembly solver (A2plus)

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

https://github.com/kbwbe/A2plus
dcapeletti
Posts: 468
Joined: Wed Jul 23, 2014 2:27 pm

### Re: Another approach to assembly solver (A2plus)

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
easyw-fc
Posts: 2903
Joined: Thu Jul 09, 2015 9:34 am

### Re: Another approach to assembly solver (A2plus)

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

### Re: Another approach to assembly solver (A2plus)

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

### Re: Another approach to assembly solver (A2plus)

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