Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
kbwbe
Posts: 775
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 14, 2019 6:57 pm

f3nix wrote:
Sun Apr 14, 2019 6:48 pm
Credits should go to @hamish2014 for his fit_plane_to_surface1 function.
+1
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.17, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
User avatar
Kunda1
Posts: 3928
Joined: Thu Jan 05, 2017 9:03 pm

Re: Another approach to assembly solver (A2plus)

Postby Kunda1 » Mon Apr 15, 2019 3:15 am

That was an awesome example of open source collaboration. Bravo :clap: :clap:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
triplus
Posts: 8278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Another approach to assembly solver (A2plus)

Postby triplus » Mon Apr 15, 2019 6:59 pm

Yep, @hamish2014 offered a solution and implemented the first generation of Assembly capabilities for FreeCAD. With A2plus we are now at the second generation and still can learn and reuse much work and effort invested in creating the first generation. We have and can still learn much from this process.
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Tue Apr 16, 2019 4:21 pm

kbwbe wrote:
Sun Apr 14, 2019 6:57 pm
Just some short question:
Why don't you make the two DOF icons (On+Off) and the two Part Labels icons (On+Off) each a single-click-switch one?
This would cleanup the WB's toolbar and may still be easily to understand.

BR, Manuel
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Tue Apr 16, 2019 4:33 pm

kbwbe wrote:
Sun Apr 14, 2019 6:57 pm
BTW. the DOF Labels seem to overlap each other quite often.
Getting unusable :-(

EDIT:
Like this, no matter what degree of rotation:

Screenshot_20190416_200443.png
Screenshot_20190416_200443.png (109.49 KiB) Viewed 258 times
kbwbe
Posts: 775
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Tue Apr 16, 2019 8:37 pm

manuelkrause wrote:
Tue Apr 16, 2019 4:21 pm
Why don't you make the two DOF icons (On+Off) and the two Part Labels icons (On+Off) each a single-click-switch one?
This would cleanup the WB's toolbar and may still be easily to understand.
Hi Manuel,
i will change this next days.

BR, Klaus
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.17, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
kbwbe
Posts: 775
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Tue Apr 16, 2019 8:44 pm

manuelkrause wrote:
Tue Apr 16, 2019 4:33 pm
... the DOF Labels seem to overlap each other quite often.
The labels attach to the center of the boundingbox of each part. In your example, these points are all close together and therefore the labels overlap. Doing bigger assemblies (>50 parts), the labels usually are more distributed and they help to find parts, which are not completely constrained.

BR, Klaus
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.17, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
Jee-Bee
Posts: 1697
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Another approach to assembly solver (A2plus)

Postby Jee-Bee » Wed Apr 17, 2019 6:08 am

If you just show the labels of objects that are not complete constraint? than at least less clutter of labels which should give better results...
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Wed Apr 17, 2019 1:57 pm

kbwbe wrote:
Tue Apr 16, 2019 8:37 pm
kbwbe wrote:
Tue Apr 16, 2019 8:44 pm
manuelkrause wrote:
Tue Apr 16, 2019 4:33 pm
... the DOF Labels seem to overlap each other quite often.
The labels attach to the center of the boundingbox of each part. In your example, these points are all close together and therefore the labels overlap. Doing bigger assemblies (>50 parts), the labels usually are more distributed and they help to find parts, which are not completely constrained.

BR, Klaus
Hi Klaus,
thank you for picking these up. With your explanation I understand the effects of the concept and...
I just had an idea regarding this, but don't know how easily this could be programmed or how useful it'll be in real use:

Why not have some random numbers depending on the size of the parts' boundingbox(es) to define an x,y offset for the label's position? This may ease this a little bit.

I've noticed, that (1) the labels don't get to top position when selected in tree view, and (2) they also don't reference any part name in their Combo View info. Wouldn't it make sense to get them up and add more info to the labels, there? (I know the info is shown in the Report View.)

Just some suggestions, just decide yourself what makes sense.

Best regards, and many thanks for your great work!

Manuel
dan-miel
Posts: 48
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: Another approach to assembly solver (A2plus)

Postby dan-miel » Thu Apr 18, 2019 4:30 am

manuelkrause wrote:
Wed Apr 17, 2019 1:57 pm
I just had an idea regarding this, but don't know how easily this could be programmed or how useful it'll be in real use:

Why not have some random numbers depending on the size of the parts' boundingbox(es) to define an x,y offset for the label's position? This may ease this a little bit.
I had thought it would be nice if the labels could be selected in the graphics window and then hide them or move them to the side. I played with the program but I was not even able to make the labels selectable.

Dan