ProductStructureAccess class CATPLMPrdProductReferenceServices

Usage: you must use this class as is. You should never derive it.


public class CATPLMPrdProductReferenceServices

Class to Access Product References and related information directly from the database.


Method Index


o GetWhereUsed(CATIAdpPLMIdentificator&,CATLISTP(CATIAdpPLMIdentificator)&)
Retrieve all Product References using a given Product Reference.

Methods


o GetWhereUsed
public static HRESULT GetWhereUsed(CATIAdpPLMIdentificator& iPrdReference,
CATLISTP(CATIAdpPLMIdentificator)& oPrdUsingReference)
Retrieve all Product References using a given Product Reference.

Role: Retreive from the database the list of all accessible Product References using another Product Reference.

A Product Reference is accessible if it meets the following conditions:

Parameters:
iPrdReference
The Product Reference
oPrdUsingReference
The returned Product Reference list.
Must be provided as an empty List on the input;
If any Identificator returned in the list, it has to be each released;
Returns:
the returned value.
  • S_OK : Returns a reference list (at least one Reference)
  • S_FALSE: It does not exist any Product reference using it. Returned list is then empty.
  • E_FAIL : There is some problem encountered in the API call.
  • E_INVALIDARG: The input Identificator is not an existing Product Reference

This object is included in the file: CATPLMPrdProductReferenceServices.h
If needed, your Imakefile.mk should include the module: CATPrdAccessCAA

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.