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
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
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
https://pastebin.com/4wqnmvUf
Addon here loads successfully since. I haven't explored features yet, there's no restriction to load addon on FC v.0.19.
Hope, helps.