All Frameworks  Class Hierarchy  This Framework  Indexes

CATPDMBase Global Function StartEV5Server


StartEV5Server( const iUser,
const iPwd,
const iServer,
const iRole)
Starts the ENOVIA V5 server and connects the user to the ENOVIA V5 database.

Role : This method enables the connection to the ENOVIA V5 server. It starts the ENOVIA V5 server and connects the user to the ENOVIA V5 database with the given role.

Caution : Any usage of this method other than in batch process is highly discouraged. Example of prohibited usage is through user-exit or any interactive-based procedure.
Be aware not to launch simultaneous connections : do not use this method if CATIA is already connected to a running server.
 
Parameters:
iUser
name of the user to connect
iPwd
password of the user declared with iUser
iServer
ServerHost name
For instance "intedsy:1579"
iRole
The selected role to connect the user to the ENOVIA V5 database
For instance "VPMDESIGNER.VPM.DEFAULT"
Returns:
  • S_OK : User successfully connected to the database server.
  • E_FAIL : The connection has failed.
  • E_INVALIDARG : Parameters iUser, iPwd or iServer are empty.

This object is included in the file: CATPDMInteropServices.h

Copyright © 2003, Dassault Systèmes. All rights reserved.