Cancel
Showing results for 
Search instead for 
Did you mean: 

Opening a part file from batch

Builder
Builder

Is there a way to start a session of NX from a batch  file and have it immediately open up a part file as soon as the session is open?

3 REPLIES

Re: Opening a part file from batch

Siemens Phenom Siemens Phenom
Siemens Phenom

ugraf.exe -retrieve (file) should do that.

 

I have to find it in the docs to see what the exact syntax is.

Re: Opening a part file from batch

Builder
Builder
Okay yeah not sure how exactly to do that.
Syntax would be great Smiley Happy

Re: Opening a part file from batch

Siemens Phenom Siemens Phenom
Siemens Phenom

"ugraf.exe" is the command to start the NX interactive process.  You can use a command-line argument to make it open a part immediately, like this:

 

ugraf.exe -retrieveSmiley Very Happy:\_NX9\_Parts\ToyCar\toycar_assy.prt

 

This is documented under Fundamentals -> Launching NX -> Start NX on Windows Platform -> Command Line Startup Switches for Windows.