CATPLMIntegrationUse CATAdpPLMComponentsServices

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


public class CATAdpPLMComponentsServices

Query services to retrieve informations on components.

Role: Provide a way to retrieve information on components CATAdpPLMComponentReferences myInfos; CATAdpPLMComponentsServices::GetReferencesFromComponents(ListInstances,myInfos); CATAdpPLMComponentReferencesIter iter = myInfos.GetIterator(); CATIAdpPLMIdentificator * instAdpId=NULL; while ( S_OK == iter.NextInstance(instAdpId) && instAdpId) { CATIAdpPLMIdentificator * ownerAdpId=NULL; if(SUCCEEDED(myInfos.GetOwner(instAdpId, ownerAdpId)) && ownerAdpId) { //... CATSysReleasePtr(ownerAdpId); CATIAdpPLMIdentificator * refAdpId=NULL; if(SUCCEEDED(myInfos.GetReference(instAdpId, refAdpId)) && refAdpId) { //... } CATSysReleasePtr(refAdpId); CATSysReleasePtr(instAdpId); }


Method Index


o GetReferencesFromComponents(CATLISTP(CATIAdpPLMIdentificator)&,CATAdpPLMComponentReferences&,CATIAdpPLMErrorReviewer*)
Service to retrieve owner and aggregating references from a list of instances.

Methods


o GetReferencesFromComponents
public static GetReferencesFromComponents( const iComponents,
oResults,
iopErrorReviewer= NULL )
Service to retrieve owner and aggregating references from a list of instances.
Role: Enables to retrieve the owner and the aggregating references for each instance of the set of components.
Parameters:
iComponents
[in] The list of components of type instance. If you put many times the same instance in the list, only one is taken into account.
oResults
[out] The queried result on which we find owner and aggregating reference for each input component through
iopErrorReviewer
[inout] The ErrorMonitor dedicated to store and handle all PLM Errors raised during the execution of this service.
Returns:
  • S_OK if the informations are available for the list of components.
  • E_FAIL if a fatal error occured during the operation.
  • E_INVALIDARG if a component does not correspond to a instance, or if there is an unvalid component(ie , component which has not been saved once).

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

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