1 Install Eclipse
The latest Eclipse installers can be found here:
https://eclipse.org/downloads/
Actual release is LUNA.
2 Install Python
Install a Python Interpreter.
Use Python 3.3 for NXOpen programming.
3 PyDev Add installation
The PyDev Module has to be installed for the Python Templates.
To Install Pydev, go to Help -> Install New Software
Check if the correct Python Interpreter is selected in Windows->Preferences Python Interpreter
The Pythonpath is adapted during startup automatically by the script below.
4 Configure Eclipse for NX Open
The correct environment has to be set to be able to work with Autocompletion in the Environment.
The simplest way is to add a startup script for Eclipse. The following script could be used to setup the correct NX environment:
:: Set NX Variables SET UGII_BASE_DIR=D:\SPLM\NX10.0 SET UGII_ROOT_DIR=D:\SPLM\NX10.0\UGII set UGII_LIB_DIR=D:\SPLM\NX10.0\UGII\ set PATH=%UGII_ROOT_DIR%;%PATH% :: Set the PYTHONPATH set PYTHONPATH=D:\SPLM\NX10.0\UGII\python :: Start Eclipse D:\DEV\eclipse\eclipse.exe
Now Autocompletion is available for the NXOpen modules.
联系客服