Making intellisense work with Python Tools for Visual Studio for NXOpen.

Does any one know how to make intellisense work for NXOpen Python ,on Visual Studio 2012(or any). I have installed PTVS 2.1 but not able to make intellisense recognise NXOpen libraries.

It works with c#,VB but no python IDE could recognise the DLLs and give intellisense .

If you like to use Python API you work with NX10?
Take a look into release notes to find out Visual Studion Version with certified compiler.
I think it is 2013 but I'm not sure.

I hope this will work for you.

NX 9 and Team Center 10

Thanks man!! That did help. The doc is available at

All Programs→Siemens NX 10.0→Release Information→NX Release Notes

Search for python visual studio ,and follow the instructions.

Using external Python distribution
The Python distribution included in NX is Python 3.3.2 with the PLY extension module included. If you use other Python extension modules, you can set up NX to use a Python distribution that you install that includes the other extension modules.

Specify the external Python distribution for NX to use with the UGII_PYTHON_LIBRARY_DIR and UGII_PYTHONPATH environment variables. You can set these environment variables in your site, group, or user environment variable customization in your ugii_env.dat file.

The UGII_PYTHON_LIBRARY_DIR variable specifies the directory that contains the Python shared library. The location of this shared library depends on how Python was installed on the system. For example, if you installed Python 3.3.2 on Windows for all users, the Python shared library (Python33.dll) is in the directory %SystemRoot%\System32. If you installed Python 3.3.2 locally, the Python shared library is in the directory \DLLs.

The UGII_PYTHONPATH variable specifies the directories that the Python interpreter searches to find Python modules, including the NX Open Python extension modules. When you set this variable, include the location of the NX Open Python extension modules in addition to any other extension modules you are using. For example, if you installed Python 3.3.2 on Windows, UGII_PYTHONPATH should be set as follows:

UGII_PYTHONPATH=;\DLLs;\Lib;\Lib\site-packages;%UGII_BASE_DIR%\ugii\python;
You can override the UGII_PYTHONPATH and UGII_PYTHON_LIBRARY_DIR settings by using the Override Python Parameters command in NX. If you override the UGII_PYTHONPATH variable, do not include the Python33.zip file in your UGII_PYTHONPATH setting, since it is not needed and conflicts with your external Python distribution.

Python environment setup
If you are running an NX Open Python journal that uses a third party library, you need to set any required environment variables before running NX. The Python interpreter embedded in NX finds those environment variables when it is started.

For example, if you run Python journals that use the tkinter extension module for creating Tk dialog boxes, you need to set the TCL_LIBRARY environment variable before running NX. The correct setting for the Python version used by NX (the tcl version for Python 3.3.2 is tcl 8.5) is:

TCL_LIBRARY=\tcl\tcl8.5

did you manage to set up visual studio to import NXopen and have auto complete in python?

I'm not a big expert with the environmental variables.

Any help would be massively appreciated
Thank you