All Frameworks  Class Hierarchy  This Framework  Next  Indexes

CATDataExchControlAlgo Class CATDECPartToPartConvertor

CATDECPartToPartConvertor
 

Usage: you must use this class as is. You should never derive it.


public class CATDECPartToPartConvertor

Create a new CATPart from a CATPart
Role: This service is used to convert a Part into a Part file.


Usage:



Constructor and Destructor Index


o CATDECPartToPartConvertor()

Method Index


o GetError()
Error message if run failed.
o GetResult()
Result.
o Run()
Convert the part according to the options.
o SetOption(CATUnicodeString,CATBoolean)
Set or unset options.

Constructor and Destructor


o CATDECPartToPartConvertor
public virtual ~ CATDECPartToPartConvertor()

Methods


o GetError
public virtual CATUnicodeString GetError()const = 0
Error message if run failed.
Returns:
returns message error.
o GetResult
public virtual CATDocument * GetResult()const = 0
Result.
Returns:
returns result CATPart.
o Run
public virtual HRESULT Run()= 0
Convert the part according to the options. This function can be called only one time.
This function load the input CATPart, create a new CATPart and unload the input CATPart and output CATPart.
Returns:
returns S_OK if done.
o SetOption
public virtual HRESULT SetOption( const CATUnicodeString iOpt,
const CATBoolean iMode) = 0
Set or unset options. This function must be called before RUN.
Parameters:
iOpt
  • iOpt = "KeepProductProperties" for keeping Part product properties
  • iOpt = "KeepSubColors" for keeping sub color elements
  • iOpt = "KeepAnnotations" for keeping 3D Functional Tolerancing & Annotation elements
  • iOpt = "KeepPublications" for keeping publication
  • iOpt = "KeepSelectionSet" for keeping selection set
  • iOpt = "KeepLayerFilter" for keeping Layer and filter on elements
  • iOpt = "Keep2DLayout" for keeping 2D Layout element
  • iOpt = "Trace" for log trace
iMode
TRUE to set the option on
Returns:
returns S_OK if done.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.