Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

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

7 REPLIES

Re: Vericut in NX

You need to define soms UGII variables telling NX where to find your custom environment.
Patrick Delisse
KMWE - DutchAero
NX11.0, CAMPOST V22, Vericut 8.0

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%

Solution
Solution
Accepted by MarkRief (VIP)
‎08-26-2015 04:32 AM

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

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

Patrick Delisse
KMWE - DutchAero
NX11.0, CAMPOST V22, Vericut 8.0

Re: Vericut in NX

That solved the problem

Re: Vericut in NX

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

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 - DutchAero
NX11.0, CAMPOST V22, Vericut 8.0

Learn online





Solution Information