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:
- Create convertion operator by CATCreatePartToPartConvertor (CATDocument *)
- Set convertion options
- Run convertion.
- GetResult to retrieve the CATDocument result.
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
-
Error message if run failed.
- Returns:
- returns message error.
o GetResult
-
Result.
- Returns:
- returns result CATPart.
o Run
-
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
-
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