Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Launch NX 11 from VB.net or C#

Creator
Creator

Hi @mkn ,

 

I did not prepare this code. I have take it from NX files. Nx uses this batch file to start NX in batch mode. I just added last 2 rows to the this file.

 

set base=C:\Program Files\Siemens\NX 10.0
set base_dir=%base:"=%
if "%base_dir:~-1%" == "\" set base_dir=%base_dir:~0,-1%
set UGII_BASE_DIR=%base_dir%
set UGII_ROOT_DIR=%base_dir%\UGII\
set PATH=%base_dir%\ugii;%PATH%
call "c:\Program Files\Siemens\Nx 10.0\ugopen\ufvars.bat" "%base_dir%"
if "%DISPLAY%" == "" set DISPLAY=LOCALPC:0.0
 cd /d C:\Work\duzenli_dosyalar
run_journal "Change_exp_run.vb"

Re: Launch NX 11 from VB.net or C#

Phenom
Phenom

ok Smiley Wink

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Re: Launch NX 11 from VB.net or C#

Experimenter
Experimenter

Could you create this script in c#??

 

I want to do the same thing but i need in c#.

Re: Launch NX 11 from VB.net or C#

Phenom
Phenom

The script is only a batch file.  To run C# journal change the name of the journal file in the last line.

 

Suresh
Technisites Australia
Production: NX10.0.3 Developing: NX11.0.2.7, NX12.0.2, NX1847,
Development: C++, C# .Net, VB .Net, Python, KF