All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATInitBatch


HRESULT CATInitBatch()
Initializes the V5 session to communicate with ENOVIAvpm V4.
Role:This method initializes the CATIA V5 session and establishes the connection with ENOVIAvpm V4.
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 ENOVIAvpm V4 application (client or server) running to which this method can connect to, a new ENOVIAvpm V4 server is launched on the local 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.
This method can be used for Unix client only.
See also:
CATInitBatchOnHost for submission from Windows client or from Unix client on a dedicated Unix host.

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

Returns:
  • S_OK: The communication channel is successfuly established
  • 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: CATBatchServices.h

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