Open the Part file through batch
Open the Part file through batch
(OP)
Hi All,
Is there any option to open the part file through batch using command line argument.
Generally applications accepts the command line arguments. I tried in NX but it is not working.
For example:
call %UGII_ROOT_DIR%\ugraf.exe D:\files\testPart.prt
Thanks,
Selvaraj C
NX Automation Engineer
Is there any option to open the part file through batch using command line argument.
Generally applications accepts the command line arguments. I tried in NX but it is not working.
For example:
call %UGII_ROOT_DIR%\ugraf.exe D:\files\testPart.prt
Thanks,
Selvaraj C
NX Automation Engineer





RE: Open the Part file through batch
Add the -retrieve option to pass the part file name to ugraf.exe.
CODE --> script
Using ugraf will cause a new instance on NX for each "Call".
Using just the part name will cause windows to use the default association for the .prt extension (ugs_router.exe) which will start NX if needed or reuse a running instance and pass the part file to NX.
CODE --> script
HTH, Joe
RE: Open the Part file through batch
Where can I get these knid of batch arguments script info?.
Is anything mentioned in Documentation?
Thanks,
Selvaraj C
NX Automation Engineer.
RE: Open the Part file through batch
The NX launch command line switches:
https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help/#uid:launch_win_switches_r
"Home -> Fundamentals -> Launching NX -> Start NX on Windows Platform"
Ugs_router.exe switches:
https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help/#uid:xid280878
"Home -> System administration - Command line utilities -> Start and connect to applications"
Also, using an NX command shell and entering the command ugs_router with no arguments will cause a popup dialog that describes all of the arguments / options.
HTH,
Joe