Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

eclipse python environment setup

Creator
Creator

For an academic project I am trying to setup Eclipse using the pdf guide "Setup_Eclipse_for_NXOpenPythonScripting" (by boris.lauber@siemens.com) the last step is to Set  NX Variables and set the PYTHONPATH.

Capture.PNG

 

1.Where exactly I should set up this variables for NX environment?

 

2. I installed NX 12 and I didn't find ".......\UGII\python" folder. But I found "....\siemens\NX12\NXBIN\python" folder.  Should I set this as python path? or should I make a folder named "python" under UGII and then set that as python path?

 

The pdf is available below. Any suggestion appreciated.

5 REPLIES 5

Re: eclipse python environment setup

Legend
Legend

Hi @biswasp ,

Please note I'm not a Python specialist so I might be mistaken but I'll give you some answers which I believe to be the good ones!

 

1. You've got different solutions. You can for example create them as system environment variables but the best way, which is indicated in your guide is to create a startup script. That means creating a text file with the text you've made the screenshot of (set UGII...) + a final line calling eclipse.exe in order to launch eclipse with this variables.

 

2. There's been a change since NX11. Some things that were in UGII are now in NXBIN. As your guide seems to be for Nx10 but you work with NX12, just point out the NXBIN\python folder !

 

Best regards,

Frédéric.

Re: eclipse python environment setup

Creator
Creator

I tried setting up the env variable. but now I am having this problem where it cannot load NXOpen. Do you have any Idea. I already tried to search. Capture1.PNG

Re: eclipse python environment setup

Pioneer
Pioneer

 just posted a reply to your other question, but it's worth noting that i've never gotten NXOpen to import correctly - I end up invoking the .py script file directly through NX through the journal command (alt+f8, I think). You may have more luck running your script as a journal. 

Re: eclipse python environment setup

Experimenter
Experimenter
I have the same problem, did you found the solution? would you mind to share the solution and the startup script?

Re: eclipse python environment setup

Creator
Creator

I couldn't figure it out. but to get going I am following the advice by  @pythonfan2  . that means opening a journal file in python and then editing it.