All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATLoadChildrenFromVPM


HRESULT CATLoadChildrenFromVPM(CATDocument* iDoc,
int iNbLevel,
CATUnicodeString* puWhereClause= NULL)
Loads children of a product coming from ENOVIAvpm V4 database.
Role:This method loads all the children of the Structure Exploded up to iNbLevel levels, from the Part identified as input parameters. The input document must be associated to a Part coming from ENOVIAvpm V4 database.
The Structure Exploded assembly must have been open previously using CATOpenConfiguredAssemblyInVPM with the same part identifier parameters.

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

Parameters:
iDoc
the father document
iNbLevel
the depth from the father to import children.
0 for "ANY" to retrieve all the children
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.
Returns:
  • S_OK: The children documents have 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.