All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

ObjectModelerBase Interface CATIExportTypeManager

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATIExportTypeManager
 

Usage: you can freely reimplement this interface.


interface CATIExportTypeManager

Interface to export a given format to an another one.

Usage : to be able to save an existing document in a specific format, you have to :
1. add a new declaration in your dictionary: DocumentType_MyFormat CATIExportTypeManager libXXX For example, if you want to save a CATProduct document to a "MyFormat" format, you would declare CATProduct_MyFormat in the dictionary. The new dictionary declaration will cause "MyFormat" to appear in the list of document types in the File/SaveAs panel.
2. implement the ExportData method of CATIExportTypeManager in order to specify the way the "MyFormat"-type document is to be saved.


Method Index


o ExportData(CATDocument*,CATUnicodeString)
Defines how to export data of a given document.
o ExportData(CATUnicodeString,CATUnicodeString)
Defines how to export data from a given area.

Methods


o ExportData
public virtual HRESULT ExportData(CATDocument* iDoc,
CATUnicodeString iPath)= 0
Defines how to export data of a given document.
Role: Will be called at SaveAs .
Parameters:
iDoc
The given document to be saved.
iPath
The path describing the storage area where data is to be exported.
Note: this path is the one selected in File / SaveAs box dialog.
o ExportData
public virtual HRESULT ExportData(CATUnicodeString iToExportPath,
CATUnicodeString iExportedPath)= 0
Defines how to export data from a given area.
Parameters:
iToExportPath
Tje path of the document from which data is to be exported.
iExportedPath
The path describing the storage area where data is to be exported.

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

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