All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATValuatePdmId


HRESULT CATValuatePdmId(CATDocument* iDocument,
const CATUnicodeString& iCoid,
const CATUnicodeString& iCompid,
const CATUnicodeString& iCatenv,
const CATUnicodeString& iCatab,
const CATUnicodeString& iCnxString= CATUnicodeString())
Valuates the ENOVIAvpm V4 DocID of a document in session.
Role:This method computes a ENOVIAvpm V4 DocId from the input parameters and valuates it on the CATDocument given in input.

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

Parameters:
iDocument
The Document
iCoid
the Coid of the entity in ENOVIAvpm V4(Hexadecimal 16 crc long)
iCompid
the Compid of the entity in ENOVIAvpm V4(Hexadecimal 16 crc long)
iCatenv
the VPM environment name of the entity (8 crc long).
For instance "VPMENV "
iCatab
the VPM PART table name of the entity (18 crc long).
For instance "PART_LIST " for a part or "DOCUMENT " for a V5 document
iCnxString
(optional) if needed, in order to avoid a manual connection The connection string of the entity in VPM can be furnished here.
Returns:
  • S_OK: The DocId has been successfuly computed and valuated on the document
  • E_FAIL: the connection to the database was not previously done
  • E_FAIL: some input parameters are incorrect

This object is included in the file: CATBatchServices.h

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