Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
kbwbe
Posts: 1044
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Thu Sep 06, 2018 10:25 am

easyw-fc wrote: Wed Sep 05, 2018 8:23 pm Hi to all devs! Very nice team work! :D
BTW I cannot display the icons of the constraints...
what I get is similar to the @Turro75 image I'm attaching
Thanks in advance
Hi Maurice,
i changed the iconpath for the viewproviders (devel branch). With doing fresh assemblies, the problem should be gone.
Please find attached a sample file. It should open on your machine with correct icons.
Attachments
icons-test.fcstd
(16.71 KiB) Downloaded 15 times
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.54b, 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
Posts: 2980
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Thu Sep 06, 2018 12:13 pm

wandererfan wrote: Thu Sep 06, 2018 1:28 am
easyw-fc wrote: Wed Sep 05, 2018 8:23 pm BTW I cannot display the icons of the constraints...
what I get is similar to the @Turro75 image I'm attaching
what do you get back when you enter this in the console?

Code: Select all

>>> import a2plib
>>> a2plib.pathOfModule()
here my result:

Code: Select all

a2plib.pathOfModule()
'C:\\Users\\userC\\AppData\\Roaming\\FreeCAD\\Mod\\a2plus'
------------------------------------------------------------------------------
kbwbe wrote: Thu Sep 06, 2018 10:25 am Hi Maurice,
i changed the iconpath for the viewproviders (devel branch). With doing fresh assemblies, the problem should be gone.
Please find attached a sample file. It should open on your machine with correct icons.
I unfortunately get the same issue:
A2p-icons.png
A2p-icons.png (355.22 KiB) Viewed 637 times
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Thu Sep 06, 2018 12:22 pm

kbwbe wrote: Thu Sep 06, 2018 10:25 am
easyw-fc wrote: Wed Sep 05, 2018 8:23 pm Hi to all devs! Very nice team work! :D
BTW I cannot display the icons of the constraints...
what I get is similar to the @Turro75 image I'm attaching
Thanks in advance
Hi Maurice,
i changed the iconpath for the viewproviders (devel branch). With doing fresh assemblies, the problem should be gone.
Please find attached a sample file. It should open on your machine with correct icons.
Hi Klaus,

this works well for me on my linux system.

BTW, can we have the recently changed "print detailed DOF informations to console" as either a WB icon click-able function or an on/off option in-there? IMO, hiding it in the menu is not really useful for me.

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

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Thu Sep 06, 2018 12:44 pm

Turro75 wrote: Wed Sep 05, 2018 9:38 pm
kbwbe wrote: Wed Sep 05, 2018 8:58 pm
Turro75 wrote: Wed Sep 05, 2018 6:43 pm @Kbwbe,

of course a more intensive test has to be put in place, anyway with the latest improvements and bug fixes the solver seems working very well.
I would like to know if You already planned a sort of roadmap to first "public" release or what do You think we are still missing to reach the feature freeze stage.

Of course no pressure at all, it's ready when it is ready.
.
Hi Turro,
the job to first public release ( it will be v0.1 ) is nearly done. We reached the feature freeze state. I am sure, worst bugs are found and the WB is working fine. I am only finishing some small things.

- enhancing accuracy:
I will add some extra solving steps, to get better final accuracy. When divergence is encountered during these extra loops, the system is still defined to be solved. This is to have better accuracy if the assembly later will be imported as subassembly. I already committed some changes regarding this to devel branch.
- cleaning up
- testing

Version v0.1 will be according state of devel now, with my simplified partial solver. It should be as stable as possible.

After release, we will start towards v0.2. Goals for this new release are:

- implementing your solver additions.
We have to do this step by step, as it is complex and we do not want to introduce bugs. Main advantage, i assume, is moving merged rigids.
- work on the importer regarding updating of parts.
Constraints should mainly not break during these updates.
- One or two new constraints
We can discuss, which are most important.
Thanks for the precise feedback, I agree.

regarding new features, my hand is high for:
1) as assembly2 does, the multiple constraints for screws, bolts,... very useful, I guess that hamish's code is nearly ready to be integrated
2) be able to enable/disable a constraint without the need to delete and recreate it.
3) constraint to system axes
4) symmetric constraint
5) make symmetric 2 faces of a part to 2 faces of another part (I'll provide an example at the right moment), I found it very useful in the past, in the end it is a plane constraint where the offset is defined by the distances of faces.
6) direct stp importing, and hopefully a command to make all objs in the current file as a2p parts
7) BOM to spreadsheet

and as last...
8) a command that temporary change color of objects according to its DOF, i.e. red fully constrained, amber partially constrained, green free to move, blue overconstrained or something like that
@Turro75:
Great feature wishlist for future evolution!
Maybe we or you should fix it in the github "Issues" section, where we can add items and vote.

Some things depend on the existence of topological naming, so that parts' sub-objects are identified reliably across (sub-)assemblies.
@kbwbe: You did successful work on this earlier, is it allowed to read the code? And @wandererfan: You recently also added code related to it. Do you make progress?

Best regards for your work!
User avatar
easyw-fc
Posts: 2980
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Thu Sep 06, 2018 12:47 pm

Hi again,
this is working if I switch the WB to A2p before opening the FC file.
If I open it without having loaded A2p WB before, the icons are not displayed.
M
User avatar
wandererfan
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: Another approach to assembly solver (A2plus)

Postby wandererfan » Thu Sep 06, 2018 12:56 pm

Turro75 wrote: Thu Sep 06, 2018 5:59 am in my pc (win10) I get

>>> import a2plib
>>> a2plib.pathOfModule()
'C:\\Users\\MYUSERNAME\\AppData\\Roaming\\FreeCAD\\Mod\\A2plus'
>>>
1) do you get the new icons in the tree or the old default icons?
2) is there an "Icons" directory in 'C:\\Users\\MYUSERNAME\\AppData\\Roaming\\FreeCAD\\Mod\\A2plus'
Koemi
Posts: 110
Joined: Thu Dec 28, 2017 11:13 am
Location: The Netherlands

Re: Another approach to assembly solver (A2plus)

Postby Koemi » Thu Sep 06, 2018 1:02 pm

kbwbe wrote: Wed Sep 05, 2018 8:58 pm Version v0.1 will be according state of devel now, with my simplified partial solver. It should be as stable as possible.
Very eager to try the first official release! :mrgreen: :mrgreen:
Could you please be so kind to rewrite your signature (I think how it is called...) when V0.1 is up and running?

Turro75 wrote: Wed Sep 05, 2018 9:38 pm Thanks for the precise feedback, I agree.

regarding new features, my hand is high for:
2) be able to enable/disable a constraint without the need to delete and recreate it.
3) constraint to system axes
5) make symmetric 2 faces of a part to 2 faces of another part (I'll provide an example at the right moment), I found it very useful in the past, in the end it is a plane constraint where the offset is defined by the distances of faces.
6) direct stp importing, and hopefully a command to make all objs in the current file as a2p parts
8) a command that temporary change color of objects according to its DOF, i.e. red fully constrained, amber partially constrained, green free to move, blue overconstrained or something like that
@ Turro75: Great idea's which I will vote for :idea:

Your nr. 5) idea, what I think you mean works the same in SolidWorks ('Width'): http://help.solidworks.com/2017/english ... SWassy.htm

I add another one: when adding a plane constraint a screen pops up asking for a distance (default=0); when necessary you can directly type in the value; if not necessary simply just click next to the popup-screen to make it disappear again. SolidWorks does this trick also.
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Thu Sep 06, 2018 1:03 pm

easyw-fc wrote: Thu Sep 06, 2018 12:47 pm Hi again,
this is working if I switch the WB to A2p before opening the FC file.
If I open it without having loaded A2p WB before, the icons are not displayed.
M
@kbwbe,
this is reproducible on my linux, FC 0.17, too. When file is loaded with another WB, icons remain alien green, then switching to A2plus doesn't change anything.
Only opening the file with the A2plus WB active makes the correct icons appear.
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Postby manuelkrause » Thu Sep 06, 2018 1:14 pm

Koemi wrote: Thu Sep 06, 2018 1:02 pm
kbwbe wrote: Wed Sep 05, 2018 8:58 pm Version v0.1 will be according state of devel now, with my simplified partial solver. It should be as stable as possible.
Very eager to try the first official release! :mrgreen: :mrgreen:
Could you please be so kind to rewrite your signature (I think how it is called...) when V0.1 is up and running?

Turro75 wrote: Wed Sep 05, 2018 9:38 pm Thanks for the precise feedback, I agree.

regarding new features, my hand is high for:
2) be able to enable/disable a constraint without the need to delete and recreate it.
3) constraint to system axes
5) make symmetric 2 faces of a part to 2 faces of another part (I'll provide an example at the right moment), I found it very useful in the past, in the end it is a plane constraint where the offset is defined by the distances of faces.
6) direct stp importing, and hopefully a command to make all objs in the current file as a2p parts
8) a command that temporary change color of objects according to its DOF, i.e. red fully constrained, amber partially constrained, green free to move, blue overconstrained or something like that
@ Turro75: Great idea's which I will vote for :idea:

Your nr. 5) idea, what I think you mean works the same in SolidWorks ('Width'): http://help.solidworks.com/2017/english ... SWassy.htm

I add another one: when adding a plane constraint a screen pops up asking for a distance (default=0); when necessary you can directly type in the value; if not necessary simply just click next to the popup-screen to make it disappear again. SolidWorks does this trick also.
O.k. I'd add the Issue "Feature Wishlist" there. This thread here won't take care of all of our wishes... ;-)
@kbwbe: Please, if wished, take over control and moderation at that place.
kbwbe
Posts: 1044
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Thu Sep 06, 2018 1:28 pm

easyw-fc wrote: Thu Sep 06, 2018 12:47 pm Hi again,
this is working if I switch the WB to A2p before opening the FC file.
If I open it without having loaded A2p WB before, the icons are not displayed.
M
Hi,
i modified devel branch and added the iconpath within the initGui.py file. It was missing there. I hope this file is interpreted before starting the WB.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.54b, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench