PLMInterferenceUseItf Interface PLMIInterferenceServices

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


interface PLMIInterferenceServices

Interface to create a default Interference Simulation.

Use CATInstantiateComponent to create an instance of PLMPIMInterferenceServices class. It returns also a pointer on the interface PLMIInterferenceServices as output argument. And this returned interface pointer is used to create the simulation.
See example below.


Method Index


o CreateInterferenceSimulation(CATIPLMNavReference*,PLMIInterferenceSimulation*&)
Creates a default Interference Simulation on a reference entity (a root product).

Methods


o CreateInterferenceSimulation
public virtual CreateInterferenceSimulation( iReference,
opiItfSimu)
Creates a default Interference Simulation on a reference entity (a root product).
Parameters:
iReference
The reference entity: the root product.
Legal values:
Valid reference
The reference is valid for an interference checking.
Invalid reference
The reference is not valid for an interference checking.
opiItfSimu
[out, CATBaseUnknown#Release] The created Interference Simulation.
Legal values:
Valid Interference Simulation
The Interference Simulation is successfully created.
Invalid InterferenceS imulation
The Interference Simulation is not created.
Example:
   This example creates the opiITFSimu InterferenceSimulation from the ipiRootProduct product.
   
   CATIPLMNavReference          * ipiRootProduct = ...
   PLMIInterferenceServices     * opiItfServices = NULL ;
   PLMIInterferenceSimulation   * opiItfSimu     = NULL ;
   
   
   HRESULT hr = ::CATInstantiateComponent ( "PLMPIMInterferenceServices"  ,
                                             IID_PLMIInterferenceServices ,
                                             (void**)& opiItfServices     ) ;
   if ( SUCCEEDED(hr) && (NULL != opiItfServices) )
   {
     hr = opiItfServices->CreateInterferenceSimulation (ipiRootProduct, opiItfSimu) ;
     ...
   }
 
   CATSysReleasePtr (opiItfServices) ;
   CATSysReleasePtr (opiItfSimu    ) ;
   

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

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