The required section "if __main__"... is in github repo now, within all branches..
If you now create a symlink within your FreeCAD Makro-Folder pointing to your development-folder/solversystem.py, you can invoke solversystem.py
from FreeCAD's makro manager. So you can solve manual via makro and test the changes you have done.
I am editing python code with Eclipse + pyDev addon. I have a symlink from FreeCAD's Mod-Folder to complete Dev-Workbenchfolder. So iam working
usually with the actual development version...
Find 2 files attached. They are fully constrained. You have only to hit "solve" after loading. The crankshaft file is the absolute performace killer.
There are some small error messages when opening the pump file. It is nothing severe and caused by a previous version i used.
- If you need solving, something has been changed in assembly. Therefore you always will have to reload system. I think no cache needed.project4 wrote: ↑Tue Jul 17, 2018 5:41 amI think there are some data that might be cached.kbwbe wrote: So what do you mean exactly with "cache" ?
For example, with my test assembly that has only 5 parts and few constraints the loadSystem function takes 2ms, if there are no parts added/removed from the assembly, it might not be needed to rebuild the whole structure again.
I've asked about A2 caching. You wrote somewhere that you didn't take its caching logic since you thought it might have problems.
- I did not use Hamish's cache, but implemented a own one for updating/reimporting parts. So A2plus only opens file once during reimport if there are more than one instance of a part in assembly.