I just tried and with cleaned(renamed) FreeCAD settings folder I still get the macro in the list:
- BoxCreator_clean settings folder.JPG (67.99 KiB) Viewed 1360 times
.
But after installation It does not work:
Code: Select all
Traceback (most recent call last):
File "C:/Users/Wivern/AppData/Roaming/FreeCAD/Macro/BoxCreator.FCMacro", line 28, in <module>
from boxcreator import boxcreator
<class 'ModuleNotFoundError'>: No module named 'boxcreator'
Code: Select all
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
Then I swap settings folders - macro works. Uninstall macro, clean all traces (cached .pyd files), restart freecad - no macro present. Install again - it works. Exit FreeCAD. Swap settings folder. Clean all traces of insatlled macro. Start freeCAD. Install macro. It runs - darn
Exit FreeCAD. Remove settings folder. Start FreeCAD. Install macro. Run macro - same error. Boxcreator subfolder is present with proper content. Exit FreeCAD. Start FreeCAD. Run macro - runs Ok, no errors.
Conclusion - FreeCAD does not see modules in subfolders if they are not present at start. Same as with Addons if macro has subfolders FreeCAD needs restart.