Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Another approach to assembly solver (A2plus)

Post by roerich_64 »

So,

have done more tests...

You are right, Klaus.

I have build a new file and take a direct import of STP's and STEP's with FC builds of Py3, Py2, any versions from 018_15860 to the newest 019_pre versions...

The same huge time to import. The same with the framerates...

After i installed this version

Code: Select all

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
cames mistakes that I could not explain. The wondrous self-contained memory usage is also part of it:
https://forum.freecadweb.org/viewtopic.php?f=13&t=35232

Ok you can follow me to the forum i linked.

BR
Walter

p.s. which version on which system have you installed, Klaus (if I decide to change completely to linux or so :mrgreen: ;) )?
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Another approach to assembly solver (A2plus)

Post by roerich_64 »

Hi there,

after deleting all config files in

C:\Users\User\AppData\Roaming\FreeCAD

and start FreeCAD, it runs :D

Thanks to all to find this issue. Spezial to @kbwbe and @ChrisB

BR
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: Another approach to assembly solver (A2plus)

Post by m.cavallerin »

Hi,

I found a way to use the skeleton modelling technique with a2Plus; in the attached link to you tube you can see a2Plus + SheetMetal + PartDesign WB's for this scope
https://www.youtube.com/watch?v=0wgsRLcy6nI
The videos show a method based on importing a solid body, but skeleton modelling could be based on imported sketches: it depends for the project and the scope of the design...

[Update]
is it possible to import from a file all or a selected list of bodies?

Thx Regards
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: Another approach to assembly solver (A2plus)

Post by m.cavallerin »

[Update]
is it possible to import from a file all or a selected list of bodies?
ok I found the option in

Code: Select all

def doNotImportInvisibleShapes():
    preferences = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/A2plus")
    return preferences.GetBool('doNotImportInvisibleShapes',True)
regards
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: Another approach to assembly solver (A2plus)

Post by m.cavallerin »

Hi,

i just updated from PPA:
OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Now I get this error when I run A2plus WB

Code: Select all

invalid literal for int() with base 10: '18.1'
Traceback (most recent call last):
  File "<string>", line 122, in Initialize
  File "<string>", line 69, in checkFC_Version
and the WB don't load.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Another approach to assembly solver (A2plus)

Post by kkremitzki »

m.cavallerin wrote: Sun Apr 07, 2019 5:32 pm
Now I get this error when I run A2plus WB

Code: Select all

invalid literal for int() with base 10: '18.1'
Traceback (most recent call last):
  File "<string>", line 122, in Initialize
  File "<string>", line 69, in checkFC_Version
and the WB don't load.
As a temp workaround, if you can find the line in the file where int(something) is being called, you can change it to int(float(something)) and it will work.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Another approach to assembly solver (A2plus)

Post by NormandC »

It must be here, but I have no clue how to change this.

https://github.com/kbwbe/A2plus/blob/ma ... Gui.py#L61
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

m.cavallerin wrote: Sun Apr 07, 2019 5:32 pm
Hi guy's,
to avoid problems with FC0.18.1, i deactivated the FC version check of A2plus, until i rework it.
Please update your A2plus WB to version v0.4.13
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, 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
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Another approach to assembly solver (A2plus)

Post by NormandC »

Thanks!
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Another approach to assembly solver (A2plus)

Post by kkremitzki »

The long term fix of course is for me to fix my patch which caused this, but I need to make some changes elsewhere to preserve the behavior I made the patch for in the first place.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply