@echo off rem ========================================================================= * rem * rem Copyright (c) 1996-2001 Unigraphics Solutions, Inc. rem Unpublished - All rights reserved * rem * rem ========================================================================= * rem rem File Name: UGII.BAT rem rem ========================================================================= rem rem This script will set the appropriate variables and then run Unigraphics. rem rem Input Parameters: rem rem Command line parameters will be passed through to Unigraphics. See rem the UG Workstation Guide for information on supported parameters. rem rem NOTE: you MUST use a colon ':' to delimit a switch from its value. rem rem For example: rem ugii -retrieve:block.prt rem rem ========================================================================= rem rem setlocal :set_display if "%DISPLAY%" == "" set DISPLAY=LOCALPC:0.0 rem rem Set variables. rem rem UNIGRAPHICS requires the following PATH variable: rem set PATH=%UGII_BASE_DIR%\ugii;%PATH% rem rem start "Title" "%UGII_ROOT_DIR%\"ugraf.exe %* if ERRORLEVEL 1 goto error_exit goto normal_exit :server_error echo ERROR: Unable to start Unigraphics. The License server(s) defined in echo the UGII_LICENSE_FILE environment variable did NOT respond. echo Current Setting: %UGII_LICENSE_FILE% echo Check: UGII_LICENSE_FILE and that server(s) echo are running. echo To check the server(s) use: echo disk:\ugs170\ugflexlm\lmutil lmstat -c %%UGII_LICENSE_FILE%% rem :error_exit pause :normal_exit endlocal @echo on