Showing results for 
Search instead for 
Did you mean: 

[Python] How to load NX Python module to PyCharm?


I realized that python can be used for customizing programming language from NX10.


I found several samples of python and tried to play in NX10, Jounal Play.


It was worked!


I attempted make my own automation code with PyCharm.


The Code was Blocked at the first line which is "import NXOpen"


ImportError: DLL load failed:

python version is 3.3.2 and blow is env path


Please Let me know how can i handle this?


set PYTHONPATH=C:\Python33;"C:\Program Files\SCAD\NX10\UGII\python"
set UGII_PYTHON_DLL=python33.dll
set UGII_PYTHON_HOME="C:\Program Files\SCAD\NX10\UGII\python"
set UGII_PYTHONPATH=C:\Python33;C:\Python33\Lib;C:\Python33\DLLs;C:\Python33\Lib\site-packages;C:\Program Files\SCAD\NX10\UGII\python
set UGII_ROOT_DIR="C:\Program Files\SCAD\NX10\UGII\"
set UGII_PYTHON_LIBRARY_DIR="C:\Program Files\SCAD\NX10\UGII\python"
set UGII_BASE_DIR=C:\Program Files\SCAD\NX10

"C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.3.2\bin\pycharm.exe"



Re: [Python] How to load NX Python module to PyCharm?


set env variable Path = "C:\Program Files\SCAD\NX10\UGII\python" as well. Hopefully it will work.