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);
}
public static GetReferencesFromComponents( | const | iComponents, | |
oResults, | |||
iopErrorReviewer | = NULL ) |
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).Copyright © 1999-2014, Dassault Systèmes. All rights reserved.