Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Project Setup Guidelines

  • Last UpdatedJan 31, 2025
  • 3 minute read

For a standard project setup refer to Project Creation Wizard. There is an extra project setup for Global which is:

  • Set up environment variables for location transfer directories. The environment variables must be added to the {proj}evars.bat file in the project folder.

    set {PROJ}_HUB=C:\{your project path}\TRANSFER\HUB

    set {PROJ}_PFB=C:\{your project path}\TRANSFER\PFB

    etc.

These will contain the project directories.

Launch base product and at the login screen make sure that the project that is to be made Global is selected in the login page. Then from the login page make sure that the Admin module is selected.

In the Admin module select Display > Command Window.

At command line type the following commands in sequence:

  • Lock

  • make Global

Note:
The user will be prompted to close and re-open the Admin module.

  • unlock

  • savework

Then quit the Admin module and reload as prompted.

Note:
When re-starting the Admin module a prompt will inform the user that the Location is uninitialized.

In the Admin module select Locations from the Elements pulldown and highlight /projecthub. Click Modify and rename /projecthub to /hub then click Apply.

A prompt will ask if the user wants to initialise the location. Click Yes.

A prompt will be displayed indicating that a new transaction database has been created.

Click OK then Dismiss on the Modify Location window.

Start the Global daemon by typing the following from the Windows command line. Click Start > Run and then type CMD to open a Windows command line window.

C:\Program Files (x86)\AVEVA\GlobalServer3.3\admindwcf start {proj}

To verify that the command has run successfully the user can query the linit flag of the location. To do this:

  • Open the Admin module.

  • Select Location from the Element pulldown.

Select Display > Command Window to open the command window and then type the following commands

q linit

Example PML to wait for command to complete:

!c = curloc

do

pause 1

session comment 'Interim savework at HUB after INITIALISE'

savework

getwork

break if (!c.linit)

!f = object FILE(!!itaSkipPath + '/skip')

break if (!f.exists())

skip

enddo

savework

***** Generate the locations at the HUB ******

/*GL

LOCLI 1

NEW LOC /PFB

LOCID ‘PFB’

DESC ‘Piping Fabrication’

RHOST ‘sg132’

CR DB TRANSACTION/PFB

GENERATE LOCATION PFB NOALLOCATE

Note:
ALLOCATE will copy all the project files to the location defined by variable {proj}_PFB.
NOALLOCATE will only copy the system DB files.

At the Satellite, use Windows Explorer to copy the files in {proj}_PFB to the location directory where the project will reside as {proj}000 (i.e. the Satellite).

Set up the base product environment at the satellite location (executables, Project directories etc).

  • Set up the base product environment at satellite location (executables, Project directories etc.)

    set AVEVA_DESIGN_EXE=C:\ita_test_env\E3D

    set {proj}000=C:\net\project\{proj}000 ¼..etc.

  • Start the daemon at the location PFB

    %AVEVA_DESIGN_EXE%\admindwcf start {proj}

AT LOC PFB

  • If still in the base product at the HUB, check PFB daemon by

    PING PFB

Example PML to wait for command to complete

do
  pause 1
  ping PFB
  handle ANY
  !f = object FILE(!!itaSkipPath + '/skip')
  break if (!f.exists())
  skip
  elsehandle NONE
  break
  endhandle
enddo

  • Log in to the Admin Module at location PFB (admin)

    INITIALISE

Having setup the environment at location

  • Log in to the Admin Module at the HUB (if not in already)

    savework

    getwork

    /PFB

    Q LINIT

** If LINIT TRUE then PFB has Initialised

Example PML to check initialisation is complete

!loc = /PFB

do

pause 1

session comment 'Interim savework at HUB after initialisation of PFB'

savework

getwork

break if (!loc.linit)

!f = object FILE(!!itaSkipPath + '/skip')

break if (!f.exists())

enddo

session comment 'Savework at HUB after confirming initialisation of PFB'

savework

getwork

Now allocate the required DBs to the location PFB

ALLOCATE pipeapproved/master SECONDARY AT PFB

ALLOCATE pipereview/siteufa/A SECONDARY AT PFB

ALLOCATE pipeworkarea/fabwork/A PRIMARY AT PFB etc.

session comment 'Savework at HUB after allocations to PFB'

savework

Wait until all dbs have been allocated at PFB

/PFB

1

The number of members in the DBALL should match the number of DBs allocated.

Example PML to wait till all databases have been allocated

do

pause 2
session comment 'Interim savework at HUB - waiting for allocations to PFB'
savework
getwork
!location = /PFB
q var !location.members[1].members
break if (!location.members[1].members.size() ge 28) $* no. of allocates
!f = object FILE(!!itaSkipPath + '/skip')
break if (!f.exists())

enddo


session comment 'Savework at HUB after confirming allocations to PFB'

savework

Create Teams and Databases at the Hub and User, MDB’s locally.

REPEAT FROM ****GENERATE LOCATION****, for all locations required.

In This Topic
TitleResults for “How to create a CRG?”Also Available in