All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function OpenAPSNGraphWithClause


HRESULT OpenAPSNGraphWithClause( const CATUnicodeString& iuPSNPath,
int iiMode,
int iiSelection,
CATDocument*& opDoc,
CATUnicodeString* puWhereClause,
CATBoolean iLoadDoc=TRUE)
Opens a product structure from a PSN file.
Role:This method opens in session a product structure defined from a ENOVIAvpm V4 PSN file. Usually, the PSN file is saved from the ENOVIAvpm V4 client on unix. The method returns the CATDocument associated to the root part of the product structure.
A Where Clause can be used to choose the representation.

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

Parameters:
iuPSNPath
The full path of the ENOVIAvpm V4 psn file. This must be a Unix file path with .psn extension. Only files stored on unix are supported.
iiMode
loading mode:
  • 0 for static
  • 1 for dynamic
  • iiSelection
    The type of selection:
  • 0 for selected instances
  • 1 for all instances
  • If needed, your Imakefile.mk should include the module: CATPinServices

    opDoc
    The CATProduct document created.
    puWhereClause
    the Where Clause to choose representation. This is a SQL format.
    For instance " C_REVISION like '---' ".
    If no Where Clause is specified, the first representation type as specified in the settings is loaded.
    iLoadDoc
    loading document:
  • TRUE Open PSN Graph with loading the document
  • FALSE Open PSN Graph without loading the document
  • Returns:
    • S_OK: The PSN file has been successfuly loaded in session
    • E_FAIL: The method has failed

    This object is included in the file: CATBatchServices.h

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