All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATInitBatchOnHost


HRESULT CATInitBatchOnHost(char* iHostName)
Initialize the V5 session to communicate with an ENOVIAvpm V4 server
Role:This method initializes the CATIA V5 session and establishes the connection with ENOVIAvpm V4 running on a dedicated Unix host.

This method creates a CATIA V5 session if it is not yet initialized. Use CATTerminateBatch at the end of the application to close this session.
If there is no server running to which this method can connect to, a new ENOVIAvpm V4 server is launched on the dedicated Unix host by submitting the StartVPMBatchFromV5Batch.sh shell script.
The CV5VpmStart environment variable can be declared to set the unix directory where the StartVPMBatchFromV5Batch.sh shell script is located on the dedicated Unix host.
the CV5VpmStartTimeOut environment variable can be declared to set the timeout of the connection. By default, the timeout is 300.
This method can be used for Unix and Windows clients. For Unix client, the dedicated host can be the current local host.

See also:
CATInitBatch .

If needed, your Imakefile.mk should include the module: CATPinServices

Parameters:
iHostName
Unix host name
Returns:
  • S_OK: The communication channel is successfuly established
  • E_FAIL: The input string for Hostname is empty
  • E_FAIL: The method has failed. The possible returned errors (listed by their identifier) are:
    • ERR_2001: ENOVIAvpm server cannot be launched

This object is included in the file: CATBatchServices2.h

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