Happy New Year all and thank you DeepSOIC for sharing the code.
Warning: i am totally new to FreeCAD, not a professional programmer either. There's that and if i'm wrong please ignore the rest.
In short, while exploring things managed to install Part-o-magic via Addon Manager. Note says "For FC v.0.17-18"
My FreeCAD version is:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
After a restart of FC i found following error message:
Code: Select all
Part-o-magic requires FreeCAD at least v0.17.9933. Yours appears to have a rev.4, which is less
Assuming FC versions and revisions are separately increasing numbers, well, i had changed my
c:\Users\User\AppData\Roaming\FreeCAD\Mod\Part-o-magic\PartOMagic\Base\Compatibility.py to following code
Addon here loads successfully since. I haven't explored features yet, there's no restriction to load addon on FC v.0.19.