I've been using the python scripting feature with FreeCAD for win64, but recently had to switch to a win32 system. I installed FreeCAD for win32 and tried the same python scripting procedure I was using before but cannot get it to work. Here is the code snippet I've been using:
Code: Select all
######################################################################
FREECADPATH = 'C:\Program Files (x86)\FreeCAD 0.18\bin' # path to your FreeCAD.so or FreeCAD.dll file
import sys
sys.path.append(FREECADPATH)
import FreeCAD
import Part
import Sketcher
import Mesh
import Draft
from FreeCAD import Base
#######################################################
"ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-fd1d67362861> in <module>
14 sys.path.append(FREECADPATH)
15
---> 16 import FreeCAD
17 import Part
18 import Sketcher
ModuleNotFoundError: No module named 'FreeCAD'"
My machine runs on windows 10. Please let me know if you have any ideas as to how to fix this, thanks!