Connects a user to the ENOVIAvpm V4 database.
Role:This method connects a user to the ENOVIAvpm V4 database
with the specified Role while performing his authentication with his password.
This method must be called after the communication with ENOVIAvpm V4 is established
by
CATInitBatch or
CATInitBatchOnHost. Use
CATDisconnectFromVPM to disconnect the user from the database.
If the database is client authentified,
iUser and iPass must be filled with an empty string ("").
If needed, your Imakefile.mk should include the module: CATPinServices
- Parameters:
-
- iServer
- server name as defined in the CATIA V5 option settings
- iUser
- name of the user to connect.
- iPass
- password of the user declared with iUser.
- iRole
- The selected role to connect the user to the ENOVIAvpm V4 database.
- Returns:
-
- S_OK: The user is successfuly connected
- E_FAIL: The method has failed. The possible returned errors (listed by their identifier) are:
- ERR_12: Server name not found in CATIA V5 settings
- ERR_101: User authentication failed
- ERR_1002: ENOVIAvpm cannot be detected
- ERR_2003: Role not available