CATDataExchControlUseItf Interface CATIDECProductToMecProduct

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


interface CATIDECProductToMecProduct

Create a new Mechanical Product from a Product.

Role: This service is used to convert a Product into a new Mechanical Product in session.
Usage:



Method Index


o GetError()
Error message if run failed.
o GetRep()
Result.
o GetResult()
Result.
o ResetAll()
Reset all data for multiple uses of this interface on the same PLMProduct.
o Run()
Convert the product according to the options.
o SetOption(CATUnicodeString,CATBoolean)
Set or unset options.

Methods


o GetError
public virtual GetError()
Error message if run failed.
Returns:
returns message error.
o GetRep
public virtual GetRep()
Result.
Returns:
returns the resulting Representation.
o GetResult
public virtual GetResult()
Result.
Returns:
returns the resulting Product.
o ResetAll
public virtual ResetAll()
Reset all data for multiple uses of this interface on the same PLMProduct.
Returns:
returns S_OK if done.
o Run
public virtual Run()
Convert the product according to the options. This function can be called only one time.
This function creates a new Product in session.
Returns:
returns S_OK if done.
o SetOption
public virtual SetOption( const iOpt,
const iMode)
Set or unset options. This function must be called before RUN.
Parameters:
iOpt
  • iOpt = "MergeAllBodies" for "Merge all bodies of each Product in one body".
  • iOpt = "KeepSubColors" for keeping sub color elements.
  • iOpt = "NoKeepColor" for keeping default color of element. This option is priority on keepSubColors
  • iOpt = "KeepAnnotations" for keeping 3D Functional Tolerancing & Annotation elements.
  • iOpt = "CaptureNameFilter=xxxxx" for keeping only annotations included in the FTA capture features whose name contains the string provided.
  • iOpt = "NoKeepSketchSpec" for keeping sketch as result. (default=keep sketch as specification)
  • iOpt = "Suffix=xxxxx" for setting suffix xxxx used in the user exit to define mandatory identifier.
  • iOpt = "TypeResult=xxxxx" for defining PLM Type of the result. xxx can be : "3DPart", "SharedRep" or "AggregatedRep".
iMode
TRUE to set the option on.
Returns:
returns S_OK if done.

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

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