MachiningExtendItf Interface DELIMfgLifeCycleManagement

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


interface DELIMfgLifeCycleManagement

Interface to be called in customized life cycle management of user activities.

Role: This interface provides basic Activity removal: it does not manage Tool Path, Product or Manfacturing feature link, Synchronisation and Transition.
DELIMfgLifeCycleManagement is implemented on any ManufacturingActivity object. It has one main method RemoveActivity() that has to be called on an object inheriting from ManufacturingActivity object in the implementation of LifeCycleObject interface when this implementation is inheriting directly from the adapter CATSpecLifeCycleObjectExt.
When using this method, you don’t have to call CATSpecLifeCycleObjectExt::remove(int iForCloseContext) because this method is already called by this API.

Do not use this interface outside of the LifeCycleObject interface implementation. The main interface to remove a feature from the model is still LifeCycleObject.

Example:
 In the implementation of LifeCycleObject for an CAA user activity :
 
 void CAAUserActivityLifeCycle::remove(int iForCloseContext)
 {
   // Specific removal to be executed on the CAA user activity
   ...
   // Activity removal
   DELIMfgLifeCycleManagement* lifeCycleActivity = NULL;
   rc = ThisCAAActivity->QueryInterface(IID_DELIMfgLifeCycleManagement,(void**)&lifeCycleActivity);
   if (SUCCEEDED(rc) && NULL!= lifeCycleActivity)
   {
        rc = lifeCycleActivity->RemoveActivity(iForCloseContext);
   }
 }
 
.


Method Index


o RemoveActivity(int)
Removes the ManufacturingActivity.

Methods


o RemoveActivity
public virtual RemoveActivity( iForCloseContext=0)
Removes the ManufacturingActivity.
Parameters:
iForCloseContext
Specify the context of remove. As this method is called in LifeCycleObject::remove(), you just need to propagate the input value.
Legal values:
  • 0 : for standard remove
  • 1 : if remove acts while closing a document
Note that his argument must be always 0. Only internal DS code can use the value 1.

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

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