Closed nicedayvl closed 5 years ago
step by step guide would be very helpfull btw
I'm working with to development version to save time:
After synchronizing the FreeCAD version with the command line version I do normally a push to git if everything is working as expected.
InventorLoader_cmd
")
b) set the location (e.g.: "D:\Projects\Python
") - the subfolder will be created for your project
c) uncheck "Create directory for solution"Shft+Alt+A
Add/remove python environments
thanks Jen, will try this configuration
hi Jens, I did al step by step and getting exception in importerUtil.py
from PySide.QtCore import from PySide.QtGui import
any ideas?
exception says DLL load fialed
It seems, you have already an QT installation for python. Unfortunately it is not compatible with your python version (e.g. 32Bit vs 64bit) linked in the project.
Maybe you can try to install a new Python version (e.g. 3.7) somewhere and reference it in your InventorLoader project (by adding this python environment).
But don't forget to install the required libraries (open the cmd.exe
and set PATH=somewhere\bin
and navigate to the libs folder and run python installLibs.py
!
I have no QT installation, I have no QT at all besides QT dlls in bin folder of FC
seems I solved problem with QT, now other exception No module named BOPTools.GeneralFuseResult in Acis.py
ImportError was unhandled by user code Message: No module named BOPTools.GeneralFuseResult
btw I set directory C:\Program Files\FreeCAD 0.17\bin\ very first in the system wide PATH
Can you please try to extract into project folder: BOPTools.zip
thanks! but I copied files into project dir and added to workspace and still get same exception like python don't see them
Running D:\Projects\Python\InventorLoader_cmd_main.py
Traceback (most recent call last):
File "D:\Projects\Python\InventorLoader_cmd_main.py", line 4, in
would you like to try teamviewer session please do you have skype btw?
It's a little bit tricky to analyse the issue. your project folder should now look like: ` ... InventorLoader_cmd\Acis.py
BOPTools__init__.py
BOPTools\GeneralFuseResult.py
BOPTools\Utils.py
... ` Your project should in VS also look like:
now missing ImportGui
and I haven't folder PySide and its contents btw
PySide.zip Sorry for all these inconveniences...
ImportGui please :)
voila: ImportGui.zip
I think it would have been easier if I had a eMail-address of you...
I wrote you mail to your gmail address from metadata.txt
The reason is, that in your %APPDATA%\FreeCAD\user.cfg
a value is missing:
<FCBool Name="checkLogging" Value="0"/>
Please replace line 62 in FreeCAD.py with:
e = xml.etree.ElementTree.SubElement(self.prm, 'FCBool')
thanks Jens! now debugging seems working as needed
hi Jens, could you share please your knowledge how to configure MS Visual Studio, say 2015 version to run and debug your addon inside FC
is that possible? thanks in advance