CATMecModExtendItf Interface CATIMmiMechanicalImportApplicative

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIMmiMechanicalImportApplicative

Interface to manage an applicative mechanical import (or external reference).
Role: This interface is implemented on external references. It is used to retrieve link information on a mechanical import (which is obtained by copy with link between two parts).
An authentication process is required prior to retrieving link information.
Before calling any method of this interface, you have to init the authentication mechanism in either of two ways :


Method Index


o BreakExternalLink()
Breaks an external link associated to an applicative mechanical import.
o GetPointedElement(CATBaseUnknown_var&)
Retrieves the pointed element.
o GetSourceProduct(CATBaseUnknown_var&)
Retrieves the product occurrence which aggregates an instance of the representation of the pointed element.
o IsPointedElementLoaded(CATBoolean&)
Retrieves the loading status of the pointed representation.
o LoadPointedElement()
Loads the pointed representation containing the pointed element.
o SetApplicativeId(GUID&)
Sets the applicative identifier.
o SetPointedElementClientId(CATUnicodeString&)
Sets the client identifier of the pointed element.

Methods


o BreakExternalLink
public virtual BreakExternalLink()
Breaks an external link associated to an applicative mechanical import.
Role: Removes the link between the external reference and its pointed element.
Returns:
S_OK
The link has been successfully removed.
E_FAIL
if or was not previously successfully called.
o GetPointedElement
public virtual GetPointedElement( oPointedElement)
Retrieves the pointed element.
Parameters:
oPointedElement
A pointer to the pointed element. It may be a subelement or a feature.
Returns:
S_OK if pointed element is returned
E_FAIL
  • if or was not previously successfully called.
  • if the pointed element is deleted
  • if the representation of the pointed element is not loaded in session.
o GetSourceProduct
public virtual GetSourceProduct( oSourceProductOcc)
Retrieves the product occurrence which aggregates an instance of the representation of the pointed element.
Parameters:
oSourceProductOcc
a pointer to the source product occurrence
Returns:
S_OK if the source occurrence is found
E_FAIL
  • if or was not previously successfully called.
  • if it is not a contextual link.
  • if the source product is not loaded in session.
o IsPointedElementLoaded
public virtual IsPointedElementLoaded( oLoaded)
Retrieves the loading status of the pointed representation.
Role: This method is used to retrieve the loading status of the pointed representation when is called before.
It always fails if is used instead of .
Parameters:
oLoaded
TRUE if the pointed representation is loaded otherwise FALSE
Returns:
S_OK if the information is correctly retrieved.
E_FAIL if was not previously successfully called. For , irrespective of its success or failure.
o LoadPointedElement
public virtual LoadPointedElement()
Loads the pointed representation containing the pointed element.
Role: This method is used to load the representation that contains the pointed element when is called before.
It always fails if is used instead of .
Returns:
S_OK if the representation is effectively loaded.
S_FALSE if the representation is already loaded.
E_FAIL if was not previously successfully called. For , irrespective of its success or failure.
o SetApplicativeId
public virtual SetApplicativeId( const iApplicativeId)
Sets the applicative identifier.
Role: Inits the authentication mechanism allowing to retrieve informations on the mechanical import. You have to give here the identifier of the mechanical import. If you don't give the correct identifier, all methods of this interface will fail.
Parameters:
iApplicativeId
a unique identifier : the applicative identifier
Returns:
S_OK if the applicative identifier matches the identifier of the mechanical import
E_FAIL otherwise
o SetPointedElementClientId
public virtual SetPointedElementClientId( const iClientId)
Sets the client identifier of the pointed element.
Role: Inits the authentication mechanism allowing to retrieve informations on the mechanical import. You have to give here the client id of the catalog of the pointed element. If you don't give the correct identifier, all methods of this interface will fail.
The pointed element must be loaded before calling this method. In order to load it, you have to know the pointed component and open it (you cannot use to load it).
Parameters:
iClientId
the client id of the catalog corresponding to the pointed element.
Returns:
S_OK if the client id matches the identifier of the StartUp Catalog of the pointed element
E_FAIL if it does not or if the pointed element is not loaded

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

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