Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Fri Feb 08, 2019 9:51 pm

easyw-fc wrote:
Fri Feb 08, 2019 9:09 pm
GlouGlou wrote:
Fri Feb 08, 2019 5:53 pm
"create simple shape" seems not to carry out a solid. Could you check out that?
Something that not be a solid cannot become a consistent mesh for FEM.
thanks.
this should be solved in this PR
EDIT and with this commit
you can play also with the A2p preference 'use solid union for importing parts and subassemblies (experimental)' to get all solid or just the solid of the shells.
dan-miel
Posts: 61
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: Another approach to assembly solver (A2plus)

Postby dan-miel » Sat Feb 09, 2019 12:01 am

manuelkrause wrote:
Tue Jan 22, 2019 12:19 pm
dan-miel wrote:
Mon Jan 21, 2019 6:49 pm
manuelkrause wrote:
Sun Jan 20, 2019 12:54 pm
And... I hope for feedback from the A2plus users and improvement proposals of those capable of coding. ;-)
If you're familiar with github, just fork @kbwbe's A2plus repo, Manuel
This is a program that I wrote for creating constraints. It starts with all of the constraints enabled and after the first feature is selected only the constraint types that are valid are enabled. There is a csv file that controls the mate selections plus icons, and options. The tool tips can/are read from a separate file which I think would be easier translate if a person so desired. Kbwbe's reorganizing his code made this possible so I thought he might like to take a look at it. Install and use directions are in the zip file along with an overview of the program.
This selection dialog is in addition to the A2plus selection dialog, it does not affect A2plus in any way.
I'm not familiar with github and I think I wrote this dialog in a strange way. On github it looked like i can add to the A2plus folder but I put this program in a separate folder so my work would not get wiped out every time I update A2plus. The folder can be dropped into the mod folder, next to A2plus. There is a InitGui.py V0.3.1 file in the zip that can be dropped in the A2plus directory and I hope it all runs.
Dan
Attachments
A2plus_Menu01.zip
(120.4 KiB) Downloaded 18 times
Constraint Picker.JPG
Constraint Picker.JPG (20.14 KiB) Viewed 946 times
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Sun Feb 10, 2019 3:20 pm

GlouGlou wrote:
Fri Feb 08, 2019 6:27 pm
easyw-fc wrote:
Tue Feb 05, 2019 11:43 pm
You need to create a new file saved i.e. as 'Assy1' and then import your 'SizeNotFollow' file as an a2p part inside it. This will create a link object to your original file.
ok, but if several parts are handled with a spreadsheet, how can do?
do you have a simple sample file to share? I would like to understand your needs better to see if this can be applied into A2p...
User avatar
GlouGlou
Posts: 1515
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Another approach to assembly solver (A2plus)

Postby GlouGlou » Wed Feb 13, 2019 9:28 pm

yes, have a look inside my file.
I would like to change the square profile seize (40->30 for example) and the whole assembly could be recomputed automatically. ;)
Check out the shape created as well: it's not a solid. I'm unable to proceed with a FEM analysis.
Thanks a lot
Attachments
SupportCuve2.FCStd
(225.61 KiB) Downloaded 13 times
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Re: Another approach to assembly solver (A2plus)

Postby easyw-fc » Thu Feb 14, 2019 11:17 am

GlouGlou wrote:
Wed Feb 13, 2019 9:28 pm
yes, have a look inside my file.
I would like to change the square profile seize (40->30 for example) and the whole assembly could be recomputed automatically. ;)
Check out the shape created as well: it's not a solid. I'm unable to proceed with a FEM analysis.
Thanks a lot
I have made an assembly starting from your file.
The result is the attached file:
a2p-top-assy-solid.FCStd
(34.31 KiB) Downloaded 16 times
and I'm attaching all the construction files:
a2p-top-assy-solid-files.zip
(246.99 KiB) Downloaded 14 times

I have used the A2p preferences option to import 'solid' part and sub-assy
The result is a solid made with solids (you can check it cutting the top-assy with i.e. a cube)
When you want to change something in your spreadsheet, just update your sub-file and update the top-assy file within the update recursive A2p button.
kbwbe
Posts: 853
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Tue Feb 26, 2019 5:03 pm

Hi everyone,

first i have to thank a lot @uwestoehr, who did a complete documentation of A2plus on the FC wiki.
This documentation can be found here: https://www.freecadweb.org/wiki/A2plus_Workbench

During the documentation process, there could be found a lot of bugs and other things to be improved.
Most of this is fixed now and i am glad to announce a new release.

V0.4.0 is out.

What's new ?
* complete reworked color and transparency management, also with more performance now
* improvements on user interface behavior
* improved angledPlanes constraint (better handling of blocking situations)
* conversion of parts to A2plus now allows selection of more than one part (thanks a lot to @easyw-fc)
* bugfix for structure view

Have fun !
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.26b, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
dan-miel
Posts: 61
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: Another approach to assembly solver (A2plus)

Postby dan-miel » Tue Feb 26, 2019 8:35 pm

Yes, Thankyou @westoehr for the document.
kbwbe wrote:
Tue Feb 26, 2019 5:03 pm
V0.4.0 is out.
This version has several improvements the first that come to mind is the angle constraint, awesome, and seems faster.
I have had my constrains dissapper on me. One way to make this happen is to create an error. If I take two cubes and add a collinear constraint, then add another at 90 degrees to the first, I get an error, which is proper. But all of the constraints get greyed out and restarting FreeCAD seems the only way to get them back.
kbwbe
Posts: 853
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Tue Feb 26, 2019 10:41 pm

dan-miel wrote:
Tue Feb 26, 2019 8:35 pm
I have had my constrains dissapper on me. One way to make this happen is to create an error. If I take two cubes and add a collinear constraint, then add another at 90 degrees to the first, I get an error, which is proper. But all of the constraints get greyed out and restarting FreeCAD seems the only way to get them back.
Hi Dan,
i tried to reproduce this error (greyed out constraints) by your described method, but on my side A2p did not show this behavior.
Do you have a file with the two cubes which is not working ? Please post it if possible.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.26b, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
dan-miel
Posts: 61
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: Another approach to assembly solver (A2plus)

Postby dan-miel » Wed Feb 27, 2019 12:27 am

kbwbe wrote:
Tue Feb 26, 2019 10:41 pm
i tried to reproduce this error (greyed out constraints) by your described method, but on my side A2p did not show this behavior.
Do you have a file with the two cubes which is not working ? Please post it if possible.
I created two new cubes and added them to a file called two cubes. I recorded the process to turn the icons grey. In one video they turn grey the other video they do not turn gray.
They turn grey https://youtu.be/3diy37wYYOY
Here they do not. https://youtu.be/e2zFKa5PM4o
I'm not sure what I did differant.
The "two cubes" file is before I add the constrains, Greyed out is when the turned grey, and the last has both mates but did not turn gray.
I hope these help
Dan
Attachments
Greyed out icons.FCStd
(6.27 KiB) Downloaded 11 times
Cube.FCStd
(3.42 KiB) Downloaded 11 times
two cubes.FCStd
(5.25 KiB) Downloaded 11 times
Two cubes with inconsistant mates.FCStd
(6.3 KiB) Downloaded 11 times
kbwbe
Posts: 853
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Postby kbwbe » Wed Feb 27, 2019 4:56 pm

dan-miel wrote:
Wed Feb 27, 2019 12:27 am
Hi Dan,
the various constraints are greyed out when no proper subelements are selected. This behavior is normal. Nevertheless i saw a small bug in your videos. The constraint-tools button stays greyed out. This is a small bug. But i cannot reproduce it here on my Linux Mint 18.3 machine.

Do you have some error prints within you console output ?
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.26b, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM