別のフォルダにある Python ファイルから FreeCAD にインポートしようとすると、少し問題が発生します。Python ファイルの場所 : c:/users/workspace/main.py
FreeCAD :c:/program files (x86)/FreeCAD0.13/bin
コマンドでインポートしようとすると from FreeCAD import *
(FreeCADのパスを追加sys sys.path.append (" path-To-FreeCADs-BinFolder " )
するとエラーが発生します:
FreeCAD 0.13, Libs: 0.13R1828
Initialization of FreeCAD failed:
While initializing FreeCAD the following exception occurred:
''module' object has no attribute 'PrintError''
Please contact the application's support team for more information. "
しかし、FreeCAD のフォルダーに Python ファイルを作成すると、機能します。上で書いたように FreeCAD をインポートすることを意味します。
PS:私のPythonバージョンは2.7.5で、FreeCADは:0.13です