#include <sprk_exchange.h>
Static Public Member Functions | |
static Format | GetFormat (char const *in_file_name) |
static ConfigurationArray | GetConfigurations (char const *in_file_name) |
static ImportNotifier | Import (char const *in_file_name, ImportOptionsKit const &in_options) |
static ImportNotifier | Import (A3DAsmModelFile const *in_model_file, ModelFileImportOptionsKit const &in_options) |
static TranslationNotifier | Translate (char const *in_file_name, ImportOptionsKit const &in_options, TranslationOptionsKit const &in_translation_options) |
static void | ExportACIS (CADModel const &in_cad_model, char const *in_file_name, ExportACISOptionsKit const &in_options) |
static void | ExportIGES (CADModel const &in_cad_model, char const *in_file_name, ExportIGESOptionsKit const &in_options) |
static void | ExportJT (CADModel const &in_cad_model, char const *in_file_name, ExportJTOptionsKit const &in_options) |
static void | ExportParasolid (CADModel const &in_cad_model, char const *in_file_name, ExportParasolidOptionsKit const &in_options) |
static void | ExportPRC (CADModel const &in_cad_model, char const *in_file_name, ExportPRCOptionsKit const &in_options) |
static ExportNotifier | ExportPRC (SprocketPath const &in_source, char const *in_file_name, bool in_compress_tessellation=false) |
static ExportNotifier | ExportPRC (SprocketPath const &in_source) |
static void | ExportSTEP (CADModel const &in_cad_model, char const *in_file_name, ExportSTEPOptionsKit const &in_options) |
static void | ExportSTL (CADModel const &in_cad_model, char const *in_file_name, ExportSTLOptionsKit const &in_options) |
static void | ExportU3D (CADModel const &in_cad_model, char const *in_file_name, ExportU3DOptionsKit const &in_options) |
static void | ExportVRML (CADModel const &in_cad_model, char const *in_file_name) |
static void | ExportXML (CADModel const &in_cad_model, char const *in_file_name, ExportXMLOptionsKit const &in_options) |
|
strong |
Enumerates the formats Exchange can recognize.
Enumerator | |
---|---|
Unsupported |
Format cannot be imported via Exchange. |
ACIS |
ACIS file (A3DEModellerType::kA3DModellerAcis). |
CADDS |
CADDS file (A3DEModellerType::kA3DModellerCadds). This format requires the "From The Vault" libraries to import. |
CATIAV4 |
CATIA V4 file (A3DEModellerType::kA3DModellerCatia). |
CATIAV5 |
CATIA V5 file (A3DEModellerType::kA3DModellerCatiaV5). |
CGR |
CATIA Graphical Represenation file (A3DEModellerType::kA3DModellerCgr). |
COLLADA |
COLLADA (DAE) file (A3DEModellerType::kA3DModellerDAE). This format requires the "From The Vault" libraries to import. |
CreoProE |
Creo (Pro/E) file (A3DEModellerType::kA3DModellerProE). |
IDEAS |
I-DEAS file (A3DEModellerType::kA3DModellerIdeas). |
IFC |
Industry Foundation Classes (IFC) file (A3DEModellerType::kA3DModellerIFC). |
IGES |
IGES file (A3DEModellerType::kA3DModellerIges). |
Inventor |
Autodesk Inventor file (A3DEModellerType::kA3DModellerInventor). |
JT |
JT file (A3DEModellerType::kA3DModellerJt). |
KeyholeMarkupLanguage |
Keyhole Markup Language (KMZ) file (A3DEModellerType::kA3DModellerKMZ). This format requires the "From The Vault" libraries. |
LatticeXVL |
Lattice XVL file (A3DEModellerType::kA3DModellerXvl). This format requires the "From The Vault" libraries to import. |
OneSpaceDesigner |
OneSpace Designer file (A3DEModellerType::kA3DModellerOneSpaceDesigner). This format requires the "From The Vault" libraries to import. |
Parasolid |
Parasolid file (A3DEModellerType::kA3DModellerParasolid). |
PDF file (A3DEModellerType::kA3DModellerPDF). PRC or U3D data stored inside the PDF can be imported. | |
PRC |
Product Representation Compact (PRC) file (A3DEModellerType::kA3DModellerPrc). |
Rhino |
Rhinocerous 3D file (A3DEModellerType::kA3DModellerRhino). |
NXUnigraphics |
NX (Unigraphics) file (A3DEModellerType::kA3DModellerUnigraphics). |
SolidEdge |
Solid Edge file (A3DEModellerType::kA3DModellerSE). |
SolidWorks |
SolidWorks file (A3DEModellerType::kA3DModellerSlw). |
STEP |
STEP file (A3DEModellerType::kA3DModellerStep). |
StereoLithography |
Stereo Lithography (STL) file (A3DEModellerType::kA3DModellerStl). |
ThreeDStudioMax |
Autodesk 3D Studio Max file (A3DEModellerType::kA3DModeller3DS). This format requires the "From The Vault" libraries to import. |
ThreeDXML |
3DXML file (A3DEModellerType::kA3DModeller3dxml). |
Universal3D |
Universal 3D (U3D) file (A3DEModellerType::kA3DModellerU3D). |
VDAFS |
VDA-FS file (A3DEModellerType::kA3DModellerVda). |
VRML |
VRML file (A3DEModellerType::kA3DModellerWrl). |
WavefrontObject |
Wavefront Object (OBJ) file (A3DEModellerType::kA3DModellerOBJ). This format requires the "From The Vault" libraries to import. |
|
static |
Performs a synchronous ACIS export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
in_cad_model | The CADModel containing the data to export. This CADModel must have come from a CAD file imported via Exchange, if it did not, the export will not succeed. |
in_file_name | The name of the file to write the ACIS data to. |
in_options | The options controlling the export of the ACIS data. |
|
static |
Performs a synchronous IGES export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
in_cad_model | The CADModel containing the data to export. This CADModel must have come from a CAD file imported via Exchange, if it did not, the export will not succeed. |
in_file_name | The name of the file to write the IGES data to. |
in_options | The options controlling the export of the IGES data. |
|
static |
|
static |
Performs a synchronous Parasolid export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
in_cad_model | The CADModel containing the data to export. This CADModel must have come from a CAD file imported via Exchange, if it did not, the export will not succeed. |
in_file_name | The name of the file to write the Parasolid data to. |
in_options | The options controlling the export of the Parasolid data. |
|
static |
|
static |
Performs an asynchronous PRC export from an A3DAsmModelFile created from a SprocketPath.
in_source | The SprocketPath containing the data to export. The geometry and segments under this SprocketPath will be used to create the A3DAsmModelFile to export as PRC. |
in_file_name | The name of the file to write the PRC data to. |
in_compress_tessellation | Whether to compress the tessellation data in the PRC data. Defaults to false. |
|
static |
Performs an asynchronous creation of an A3DAsmModelFile from a SprocketPath.
in_source | The SprocketPath containing the data to export. The geometry and segments under this SprocketPath will be used to create the A3DAsmModelFile. |
|
static |
Performs a synchronous STEP export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
in_cad_model | The CADModel containing the data to export. This CADModel must have come from a CAD file imported via Exchange, if it did not, the export will not succeed. |
in_file_name | The name of the file to write the STEP data to. |
in_options | The options controlling the export of the STEP data. |
|
static |
|
static |
|
static |
Performs a synchronous VRML export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
|
static |
Performs a synchronous XML export of the given CADModel with the provided options to a given filename. An exception will be thrown if a problem is encountered during export.
|
static |
Gets a list of configurations for the given file (if any). It should be called prior to Import if a file has configurations and the user wants or needs to specify the configuration to import and requires a list of the available configurations. If there are configurations, the function will return an array which has been populated with the list of configurations. If there are no configurations, the function will return an empty array. May throw an IOException if a problem is encountered when querying the configurations.
|
static |
Gets the format for the given file as determined by Exchange. May throw an IOException if a problem is encountered when querying the format.
|
static |
Performs an asynchronous import of the specified CAD file with the provided options. May throw an IOException prior to starting the asynchronous import. Note that if the import is successful, the CADModel created from this import will own its associated A3DAsmModelFile (see Exchange::CADModel::GetEntityOwnership for more details).
in_file_name | The name of the CAD file to import. |
in_options | The options controlling the import of the CAD file. |
|
static |
Performs an asynchronous import of the specified A3DAsmModelFile with the provided options. May throw an IOException prior to starting the asynchronous import. Note that if the import is successful, the CADModel created from this import will not own its associated A3DAsmModelFile (see Exchange::CADModel::GetEntityOwnership for more details).
in_model_file | The A3DAsmModelFile to import. |
in_options | The options controlling the import of the CAD file. Whether these options will have any effect depends on how the A3DAsmModelFile was created. |
|
static |
Asynchronously translates the specified CAD files into an array of Parasolid parts, using the options provided. A valid Parasolid session is required for this function to succeed.
in_file_name | The name of the CAD file to translate. |
in_options | The options controlling the translation of the CAD file. |
in_translation_options | Options used during the translation. |