Cancel
Showing results for 
Search instead for 
Did you mean: 

Vericut in NX

I have vericut running within NX but I would like to set the where the UGII_END.dat is looking where would I set that?

 

My batch file reads as follows:

 

@echo off

setlocal

set CGTECH_INSTALL=C:\Program Files\CGTech\VERICUT 7.3.1

rem          CGTech, Copyright, All Rights Reserved

rem CGTech environment
set CGTECH_PRODUCTS=%CGTECH_INSTALL%\windows64

call "%CGTECH_PRODUCTS%\commands\cgtenv"

rem set CGTECH_IGNORELAST=TRUE

set CGTECH_CLASSES=%CGTECH_INSTALL%\classes
if "%CGTECH_LIBRARY%" == "" set CGTECH_LIBRARY=%CGTECH_INSTALL%\library\
if "%CGTECH_LICENSE%" == "" set CGTECH_LICENSE=%CGTECH_PRODUCTS%\license
if "%TEMP%" == "" set TEMP=C:\TEMP
if "%TMP%" == "" set TMP=C:\TEMP
if "%CGTECH_LOCALE%" == "" set CGTECH_LOCALE=english
set CGTECH_LANGUAGE=%CGTECH_CLASSES%\%CGTECH_LOCALE%
set CGTECH_HELP=%CGTECH_INSTALL%\hhelp
set CGTECH_SAMPLES=%CGTECH_INSTALL%\samples\
set CGTECH_TRAINING=%CGTECH_INSTALL%\training\
set CGTECH_DEFAULT_UNITS=INCH
set CGTECH_RGB_TXT=%CGTECH_PRODUCTS%\vericut\rgbhues.txt
if "%CGTECH_JRE%" == "" set CGTECH_JRE=%CGTECH_PRODUCTS%\jre


set path=%CGTECH_PRODUCTS%\vericut;%CGTECH_PRODUCTS%\license;%PATH%

set ARG_SPLASH=-splash:"%CGTECH_CLASSES%\startup.png"
set WAITOPT=
set ARGSTR=
:cgtgetarg
if test%1==test goto cgtchkend
if /I %1==BATCH (
   set WAITOPT=/wait
   set ARG_SPLASH=
)
set ARGSTR=%ARGSTR% %1
shift
goto cgtgetarg
:cgtchkend

if "%OS%" == "Windows_NT" set start_cmd=start "VERICUT" %WAITOPT%
if "%OS%" == "" set start_cmd=start %WAITOPT%

if exist "%CGTECH_PRODUCTS%\nx\nx9\%CGTECH_LOCALE%" (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9\%CGTECH_LOCALE%
) else if exist "%CGTECH_PRODUCTS%\nx\nx9\english" (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9\english
) else (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9
)

"C:\Program Files\Siemens\NX 9.0\UGII\ugraf.exe" -nx"  %ARGSTR%

:end_cgtech

endlocal

 

So how do I make it read our settings for nx?

 

Steve

22 REPLIES 22

Re: Vericut in NX

PLM World Member Legend PLM World Member Legend
PLM World Member Legend
You need to define soms UGII variables telling NX where to find your custom environment.
Patrick Delisse
KMWE - Aero Engine
NX 12.0, TC 11.2, CAMPOST V22, Vericut 8.2, TDM 4.8
C#, VB, .NET

Re: Vericut in NX

Where is the batch file would I do that?

Would I do it just prior to
"C:\Program Files\Siemens\NX 9.0\UGII\ugraf.exe" -nx"  %ARGSTR%

Re: Vericut in NX

Something like this:

 

set CGTECH_PRODUCTS=%CGTECH_INSTALL%\windows64

call "%CGTECH_PRODUCTS%\commands\cgtenv"

rem set CGTECH_IGNORELAST=TRUE

set CGTECH_CLASSES=%CGTECH_INSTALL%\classes
if "%CGTECH_LIBRARY%" == "" set CGTECH_LIBRARY=%CGTECH_INSTALL%\library\
if "%CGTECH_LICENSE%" == "" set CGTECH_LICENSE=%CGTECH_PRODUCTS%\license
if "%TEMP%" == "" set TEMP=C:\TEMP
if "%TMP%" == "" set TMP=C:\TEMP
if "%CGTECH_LOCALE%" == "" set CGTECH_LOCALE=english
set CGTECH_LANGUAGE=%CGTECH_CLASSES%\%CGTECH_LOCALE%
set CGTECH_HELP=%CGTECH_INSTALL%\hhelp
set CGTECH_SAMPLES=%CGTECH_INSTALL%\samples\
set CGTECH_TRAINING=%CGTECH_INSTALL%\training\
set CGTECH_DEFAULT_UNITS=INCH
set CGTECH_RGB_TXT=%CGTECH_PRODUCTS%\vericut\rgbhues.txt
if "%CGTECH_JRE%" == "" set CGTECH_JRE=%CGTECH_PRODUCTS%\jre


set path=%CGTECH_PRODUCTS%\vericut;%CGTECH_PRODUCTS%\license;%PATH%

set ARG_SPLASH=-splash:"%CGTECH_CLASSES%\startup.png"
set WAITOPT=
set ARGSTR=
:cgtgetarg
if test%1==test goto cgtchkend
if /I %1==BATCH (
   set WAITOPT=/wait
   set ARG_SPLASH=
)
set ARGSTR=%ARGSTR% %1
shift
goto cgtgetarg
:cgtchkend

if "%OS%" == "Windows_NT" set start_cmd=start "VERICUT" %WAITOPT%
if "%OS%" == "" set start_cmd=start %WAITOPT%

if exist "%CGTECH_PRODUCTS%\nx\nx9\%CGTECH_LOCALE%" (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9\%CGTECH_LOCALE%
) else if exist "%CGTECH_PRODUCTS%\nx\nx9\english" (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9\english
) else (
  set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\nx9
)

 

 

set UGII_ENV_FILE=\\ladsrvr05\UGFILES\ugii_env9.dat

 

 

"C:\Program Files\Siemens\NX 9.0\UGII\ugraf.exe" -nx"  %ARGSTR%

:end_cgtech

endlocal

Re: Vericut in NX

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

Yep, thats it. By specifying your env file you will get your environment.

Patrick Delisse
KMWE - Aero Engine
NX 12.0, TC 11.2, CAMPOST V22, Vericut 8.2, TDM 4.8
C#, VB, .NET

Re: Vericut in NX

That solved the problem

Re: Vericut in NX

Experimenter
Experimenter

I am using the same batch file to launch Vericut through NX 9. But Vericut Launch Interface icon is not coming in the command bar. Could you help me in getting that NXV interface.

Re: Vericut in NX

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

In your UGIIEnv you need to specify the UGII_VENDOR_DIR:

 

Example:UGII_VENDOR_DIR=${CGTECH_PRODUCTS}\nx\NX9\english

After that the Vericut icon will be added to then manufacturing toolbar

 

Patrick Delisse
KMWE - Aero Engine
NX 12.0, TC 11.2, CAMPOST V22, Vericut 8.2, TDM 4.8
C#, VB, .NET

Re: Vericut in NX

Creator
Creator

@paehv wrote:

In your UGIIEnv you need to specify the UGII_VENDOR_DIR:

 

Example:UGII_VENDOR_DIR=${CGTECH_PRODUCTS}\nx\NX9\english

After that the Vericut icon will be added to then manufacturing toolbar

 


I realise this is years later, but @paehv can you elaborate further on this?

i have just recently upgraded to NX11 for NX10 and I am not familiar enough with this to fully understand. I am also having an issue with getting the Vericut icon into NX

 

 

Re: Vericut in NX

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

Sometime in the last years I've changed these settings. Now a days I set the correct variables in the NX startup bat file, like it's done in the Vericut NX startup script. We don't use the vericut script to start NX as this will launch NX with the out-of-the-box settings, while I use a custom environment.

 

Im my NX launch script I have the following:

set CGTECH_INSTALL=C:\Program Files\CGTech\VERICUT 8.1.2
set CGTECH_PRODUCTS=%CGTECH_INSTALL%\windows64
call "%CGTECH_PRODUCTS%\commands\cgtenv" 
set CGTECH_CLASSES=%CGTECH_INSTALL%\classes
if "%CGTECH_LIBRARY%" == "" set CGTECH_LIBRARY=%CGTECH_INSTALL%\library\
if "%CGTECH_LICENSE%" == "" set CGTECH_LICENSE=%CGTECH_PRODUCTS%\license
if "%CGTECH_LOCALE%" == "" set CGTECH_LOCALE=english
set CGTECH_LANGUAGE=%CGTECH_CLASSES%\%CGTECH_LOCALE%
set CGTECH_HELP=%CGTECH_INSTALL%\hhelp
set CGTECH_SAMPLES=%CGTECH_INSTALL%\samples\
set CGTECH_TRAINING=%CGTECH_INSTALL%\training\
set CGTECH_DEFAULT_UNITS=MILLIMETER
set CGTECH_RGB_TXT=%CGTECH_PRODUCTS%\vericut\rgbhues.txt
if "%CGTECH_JRE%" == "" set CGTECH_JRE=%CGTECH_PRODUCTS%\jre
set path=%CGTECH_PRODUCTS%\vericut;%CGTECH_PRODUCTS%\license;%PATH%
set UGII_VENDOR_DIR=%CGTECH_PRODUCTS%\nx\NX11\english

These lines come from : C:\Program Files\CGTech\VERICUT 8.1.2\windows64\commands\nx11.bat

All the CGTECH_* variables are used by the interface.

The UGII_VENDOR_DIR variable tels NX where to find the interface and the mem file in this location tells NX to add the vericut button

 

Whenever Vericut is updated, you need to update the first line with the version.

Patrick Delisse
KMWE - Aero Engine
NX 12.0, TC 11.2, CAMPOST V22, Vericut 8.2, TDM 4.8
C#, VB, .NET

Learn online





Solution Information