• PDMS set up

  • Archivos

  • Categorías

PDMS SET UP (3)-pdms.bat/evars.bat


Continued form previous post

@echo off

:: Start up PDMS, allowing for PDMSEXE being a search path, and

:: some arguments to pass into monitor

REM CREATED BY my company MAY 2008 FOR SHARING FOLDERS

REM PROJECTS/PDMSUI/PDMSLIB/DIFF/CATVIEW

REM CARTELLA CONDIVISA Z:\SERVER\AVEVA\

REM SOSTITOICE ANCHE AL FILE EVARS.BAT

setlocal

:: Define Base paths

set pdms_installed_dir=C:\AVEVA\PDMS11.6.SP4

set pdms_marine=

::Set Server variables

set PDMSEXE=%pdms_installed_dir%

::set PMLLIB=%pdms_installed_dir%\pmllib

set PMLLIB=Z:\AVEVA\pmllib

::set PDMSUI=C:\AVEVA\PDMS11.6.SP4\pdmsui

set PDMSUI=Z:\AVEVA\pdmsui

set PDMSPLOTS=%PDMSUI%\plots

set PDMSDFLTS=%PDMSUI%\DFLTS

set PDMSREPDIR=%PDMSUI%\REPORTS

set PLOTCADC=%pdms_installed_dir%\plot\PLOT.EXE

set CADC_PLOT_DIR=%PLOTCADC%

set CADC_IPCDIR=null

set PDMSHELPDIR=%pdms_installed_dir%\onlinehelp

:: Set path PDMS Diff

SET PDMS_DIFF=Z:\AVEVA\diff

SET PMLLIB=%PDMS_DIFF%\pmllib %PMLLIB%

SET PDMSUI=%PDMS_DIFF%\pdmsui %PDMSUI%

SET PDMS_UTILS=%PDMS_DIFF%\utils

SET CADC_PLOT_DIR=%PDMS_UTILS%\plot

:: Define local path variables

if not “%TEMP%”==”” goto tempok

set TEMP=%1\pdmswk

:tempok

if not “%pdmswk%”==”” goto wkok

set pdmswk=C:\AVEVA\pdms11.6.SP4\pdmswk

echo PDMSWK set to %pdmswk%

:wkok

if not “%HOMEPATH%”==”” goto homeok

set HOMEPATH=%1\pdmswk

:homeok

if not “%pdmsuser%”==”” goto userok

set pdmsuser=C:\AVEVA\pdms11.6.SP4\pdmsuser

if not “%PDMS_ACAD%”==”” set PDMSUSER=%PDMSUSER%\acad%PDMS_ACAD%

echo PDMSUSER set to %pdmsuser%

:userok

::Call the project variables

call Z:\AVEVA\project\project.bat

::Call CAT VIEW

call Z:\AVEVA\CATVIEW\evars.bat

set savepath=%path%

if not “%PDMS_ACAD%”==”” goto acaddone

set acad_version=%PDMS_ACAD%

rem echo %path%

:acaddone

:run

rem Reverse order of PDMSEXE so we find the earliest one first

set reversed=

for %%x in ( %PDMSEXE% ) do call %pdms_installed_dir%\pdms_reverse %%x

set

rem Find mon.exe

set found=

for %%x in ( %reversed% ) do call %pdms_installed_dir%\pdms_findexe %%x mon.exe

if “%found%”==”” goto nomon

set monexe=%found%

:: If we have no arguments, add ‘graphics’ so that monitor doesn’t think we are coming from a module-switch

set args=%1 %2 %3 %4 %5 %6

if “%1″==”” set args=graphics

:: For Autocad

set PDMS_ACAD=2006

set ACAD_VERSION=%PDMS_ACAD%

set PDMS_ACAD_PATH=C:\programmi\AutoCAD 2006;C:\programmi\Common Files\Autodesk Shared

:: The following directories should contain the executables – %PDMS_ACAD_PATH%

:: Alternatively, edit this macro for your own setup.

set path=%PDMSEXE%\autodraftACAD;%PDMS_ACAD_PATH%;%path%

:: Evar to workaround unwanted interaction of PDMS launcher and PLOT input;

set PDMS_CONSOLE_WINDOW=ACTIVE

:: We have found mon.exe somewhere, so start it up

:: with any arguments the user passed us

echo running: %monexe%\mon %args%

cmd/c %monexe%\mon %args%

goto end

:nomon

echo Sorry, cannot find mon.exe within your PDMSEXE – %PDMSEXE%

goto end

:end

set path=%savepath%

endlocal

CAUTION! Make a copy fof the original file.

As you can see we don’t use the evars.bat ( then I rename it as old)

In the text you can see is a mix between the original PDMS.bat and evars.bat, but we’ve made the following changes:

–we’ve indicate the paths for a shared PDMSUI and PDMSLIB

– we’ve indicated the paths for diff

– for calling the project see the text: call Z:\AVEVA\project\project.bat then every time you insert a project youv’e only to write the variables in the file project.bat and everybody can read it, instead of write it in every local computer.

-for CATVIEW the same thing ( install it in the Z: drive)

END

Una respuesta

  1. WNLXCv Excellent article, I will take note. Many thanks for the story!

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: