Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

ProE Vericut - default location override

marker4x4

New member
Hi,





how do you override the default ProMan embedded version of Vericut?


We have newer version installedin a different network location and would like the NC Check to grab that one instead of the default, half-a**ed one.





Thanks!!!
Edited by: marker4x4
 
Did you go the the vericut site and ask on their forum? They don't have near as many postings there but when I had a vericut issue they helped me out.


Just a thought.
 
marker4x4 - Here is a portion of the proev.bat file I use. It allows the user to select either the standalone or the embedded version. This may give you an Idea on how to customize your startup for Vericut. You should be able to just edit the license file path and the CGtech path.





@echo off


@echo off


set MC=unset


if "%PROCESSOR%" == "INTEL_64" set MC=ia64_nt


if "%PROCESSOR%" == "INTEL_486" set MC=i486_nt


if "%PROCESSOR_ARCHITECTURE%" == "IA64" set MC=ia64_nt


if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set MC=x86e_win64


if "%PROCESSOR_ARCHITECTURE%" == "x86" set MC=i486_nt


if not "%MC%" == "unset" goto mc_done


echo ERROR Cannot detect what machine type you have.


echo Please make one of the following settings:


echo.


echo set PROCESSOR=INTEL_486 - For Windows NT Intel based machines.


echo.


echo set PROCESSOR=INTEL_64 - For Windows Intel Itanium based machines.


echo.


echo set PROCESSOR_ARCHITECTURE=AMD64 - For Windows AMD 64 based machines.


echo.


exit


:mc_done


set PRO_MACHINE_TYPE=%MC%


if "%PROOBJ_START_DIRECTORY%" == "" set PRO_DIRECTORY=


if NOT "%PRO_DIRECTORY%" == "" "%PRO_DIRECTORY%\bin\%MC%_ptc_setvars" %0 "proev" bat


if "%PRO_DIRECTORY%" == "" %MC%_ptc_setvars %0 "proev" bat


call ptc_setvars.bat


del ptc_setvars.bat


set start_cmd=start ""


set PRO_DIRECTORY=%PRODIR%


if NOT "%PTCPATH%" == "" goto ptcpathset


set path=%PRO_DIRECTORY%\bin;%path%


set PTCPATH=true


:ptcpathset





set path=%path%;%PRO_DIRECTORY%\%MC%\lib


if NOT "%PTC_D_LICENSE_FILE%" == "" set [email protected];%PTC_D_LICENSE_FILE%


if "%PTC_D_LICENSE_FILE%" == "" set [email protected]





rem *********************************************


rem Menu for Embedded or Standalone


rem


rem This replaces the PTC Vericut set statement


rem *********************************************


:try_again


set VERICUT_FEATURE_NAME=


set /P VERICUT_MODE="Choose your VERICUT license: 1) Embedded or 2) Standalone License :"


if "%VERICUT_MODE%" == "1" set VERICUT_FEATURE_NAME=Embedded


if "%VERICUT_MODE%" == "2" set VERICUT_FEATURE_NAME=CGTECH_LICENSE


if "%VERICUT_FEATURE_NAME%" == "Embedded" goto embedded_vericut


if "%VERICUT_FEATURE_NAME%" == "CGTECH_LICENSE" call d:\cgtech\windows\commands\vericut.bat %1 %2 %3 %4 %5 %6 %7 %8 %9


if "%VERICUT_FEATURE_NAME%" == "CGTECH_LICENSE" goto end_cgtech


ECHO.


ECHO Don't be a doink, select number 1 or number 2!


ECHO.


goto try_again


rem *********************************************


rem End Vericut Menu


rem *********************************************





:embedded_vericut


set CGTECH_INSTALL=%PRO_DIRECTORY%


set CGTECH_PRODUCTS=%CGTECH_INSTALL%\%MC%\vericut


set CGTECH_CLASSES=%CGTECH_PRODUCTS%


if "%CGTECH_LOCALE%" == "" set CGTECH_LOCALE=english


set CGTECH_LANGUAGE=%CGTECH_CLASSES%\%CGTECH_LOCALE%


set CGTECH_RGB_TXT=%CGTECH_PRODUCTS%\rgbhues.txt


set CGTECH_JRE=%CGTECH_PRODUCTS%\jre


set CGTECH_DEFAULT_UNITS=INCH


set CGTECH_LIBRARY=%CGTECH_INSTALL%\text\vericut\library\


set CGTECH_SAMPLES=%CGTECH_INSTALL%\text\vericut\samples\


set CGTECH_HELP=%CGTECH_INSTALL%\html\usascii\vericut


if "%TEMP%" == "" set TEMP=C:\TEMP


if "%TMP%" == "" set TMP=C:\TEMP





if NOT "%CGTPATH%" == "" goto cgtpathset


if "%OS%" == "Windows_NT" set path=%CGTECH_PRODUCTS%;%PRO_DIRECTORY%\%MC%\obj;%PATH%


if "%OS%" == "" set path="%CGTECH_PRODUCTS%;%PRO_DIRECTORY%\%MC%\obj;%PATH%"


set cgtpath=true


:cgtpathset


set waitopt=


set argstr=


if test%1==test goto cgtchkend


if %1==BATCH set waitopt=/wait


if %1==batch set waitopt=/wait


if %1==BATCHP set waitopt=/wait


if %1==batchp set waitopt=/wait


set argstr=%1


shift


:cgtgetarg


if test%1==test goto cgtchkend


if %1==BATCH set waitopt=/wait


if %1==batch set waitopt=/wait


if %1==BATCHP set waitopt=/wait


if %1==batchp set waitopt=/wait


set argstr=%argstr% %1


shift


goto cgtgetarg


:cgtchkend


if "%OS%" == "Windows_NT" set start_cmd=start "VERICUT for Pro/Engineer" %waitopt%


if "%OS%" == "" set start_cmd=start %waitopt%


%start_cmd% "%CGTECH_JRE%\bin\javaw" -Dsun.java2d.noddraw=true -Xms24m -Xmx128m -Xss6m -classpath "%CGTECH_CLASSES%;%CGTECH_CLASSES%\CGTech.jar" Vericut %argstr%


:end_cgtech


exit /B %ERRORLEVEL%
 

Sponsor

Articles From 3DCAD World

Back
Top