Inheritance diagram for HPS.Exchange.File:

Public Types

enum  Format {
Format.Unsupported = 0, Format.ACIS = 1, Format.CADDS = 2, Format.CATIAV4 = 3,
Format.CATIAV5 = 4, Format.CGR = 5, Format.COLLADA = 6, Format.CreoProE = 7,
Format.DWG = 8, Format.DXF = 9, Format.IDEAS = 10, Format.IFC = 11,
Format.IGES = 12, Format.Inventor = 13, Format.JT = 14, Format.KeyholeMarkupLanguage = 15,
Format.LatticeXVL = 16, Format.OneSpaceDesigner = 17, Format.Parasolid = 18, Format.PDF = 19,
Format.PRC = 20, Format.Rhino = 21, Format.NXUnigraphics = 22, Format.SolidEdge = 23,
Format.SolidWorks = 24, Format.STEP = 25, Format.StereoLithography = 26, Format.ThreeDStudioMax = 27,
Format.ThreeDXML = 28, Format.Universal3D = 29, Format.VDAFS = 30, Format.VRML = 31,
Format.WavefrontObject = 32, Format.Revit = 33, Format.GLTF = 34, Format.DWF = 35,
Format.FBX = 36, Format.STEPXML = 37
}





 

Public Member Functions

virtual void Dispose ()
 
File (HPS.Exchange.File in_that)
 

Static Public Member Functions

static HPS.Exchange.ExportNotifier Export3MF (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.Export3MFOptionsKit in_options)
 
static HPS.Exchange.ExportNotifier Export3MF (HPS.KeyPath[] in_source, string in_file_name, HPS.Exchange.Export3MFOptionsKit in_options)
 
static HPS.Exchange.ExportNotifier Export3MF (HPS.KeyPath in_source, string in_file_name, HPS.Exchange.Export3MFOptionsKit in_options)
 
static void ExportACIS (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportACISOptionsKit in_options)
 
static void ExportFBX (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportFBXOptionsKit in_options)
 
static void ExportGLTF (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportGLTFOptionsKit in_options)
 
static void ExportIGES (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportIGESOptionsKit in_options)
 
static void ExportJT (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportJTOptionsKit in_options)
 
static void ExportOBJ (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportOBJOptionsKit in_options)
 
static void ExportParasolid (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportParasolidOptionsKit in_options)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportPRCOptionsKit in_options)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath[] in_source, string in_file_name, bool in_compress_tessellation)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath[] in_source, string in_file_name)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath in_source, string in_file_name, bool in_compress_tessellation)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath in_source, string in_file_name)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath[] in_source)
 
static HPS.Exchange.ExportNotifier ExportPRC (HPS.KeyPath in_source)
 
static void ExportSTEP (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportSTEPOptionsKit in_options)
 
static void ExportSTL (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportSTLOptionsKit in_options)
 
static void ExportU3D (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportU3DOptionsKit in_options)
 
static void ExportVRML (HPS.Exchange.CADModel in_cad_model, string in_file_name)
 
static void ExportXML (HPS.Exchange.CADModel in_cad_model, string in_file_name, HPS.Exchange.ExportXMLOptionsKit in_options)
 
static HPS.Exchange.Configuration [] GetConfigurations (string in_file_name)
 
static HPS.Exchange.File.Format GetFormat (string in_file_name)
 
static void GetInformation (string in_file_name, out HPS.Exchange.File.Format out_format, out string out_model_name, out string out_version, out string out_author, out string out_organization, out string out_time_stamp)
 
static HPS.ImageKit GetThumbnailImage (string in_file_name)
 
static HPS.Exchange.ImportNotifier Import (string in_file_name, HPS.Exchange.ImportOptionsKit in_options)
 
static HPS.Exchange.ImportNotifier Import (IntPtr in_model_file, HPS.Exchange.ModelFileImportOptionsKit in_options)
 
static HPS.Exchange.ImportNotifier Import (byte[] in_prc_data, HPS.Exchange.ModelFileImportOptionsKit in_options)
 
static HPS.Exchange.TranslationNotifier Translate (string in_file_name, HPS.Exchange.ImportOptionsKit in_options, HPS.Exchange.TranslationOptionsKit in_translation_options)
 

Protected Member Functions

virtual void deleteCptr ()
 

Protected Attributes

bool cMemOwn
 
HandleRef cptr
 

Detailed Description

The File class provides functions to import and export CAD files via Exchange.

Member Enumeration Documentation

◆ Format

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).

CreoProE 

Creo (Pro/E) file (A3DEModellerType::kA3DModellerProE).

DWG 

DWG file (A3DEModellerType::kA3DModellerDWG).

DXF 

Dxf file (A3DEModellerType::kA3DModellerDxf).

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 

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).

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).

Revit 

Revit file (A3DEModellerType::kA3DModellerRevit). This format is only available on 64bit compilers.

GLTF 

GLTF file (A3DEModellerType::kA3DModellerGLTF).

DWF 

Autodesk DWF file (A3DEModellerType::kA3DModellerDwf).

FBX 

FBX file (A3DEModellerType::kA3DModellerFbx).

STEPXML 

STEP XML file (A3DEModellerType::kA3DModellerStepXml)

Member Function Documentation

◆ Export3MF() [1/3]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.Export3MF ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.Export3MFOptionsKit  in_options 
)
inlinestatic

Performs an asynchronous 3MF 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the 3MF data to.
in_optionsThe options controlling the export of the 3MF data.

◆ Export3MF() [2/3]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.Export3MF ( HPS.KeyPath []  in_source,
string  in_file_name,
HPS.Exchange.Export3MFOptionsKit  in_options 
)
inlinestatic

Performs an asynchronous 3MF 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.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile to export as 3MF.
in_file_nameThe name of the file to write the 3MF data to.
in_optionsThe options controlling the export of the 3MF data.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ Export3MF() [3/3]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.Export3MF ( HPS.KeyPath  in_source,
string  in_file_name,
HPS.Exchange.Export3MFOptionsKit  in_options 
)
inlinestatic

Performs an asynchronous 3MF 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.

Parameters
in_sourceA key path containing the data to export. The geometry and segments under this key path will be used to create the A3DAsmModelFile to export as 3MF.
in_file_nameThe name of the file to write the 3MF data to.
in_optionsThe options controlling the export of the 3MF data.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportACIS()

static void HPS.Exchange.File.ExportACIS ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportACISOptionsKit  in_options 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the ACIS data to.
in_optionsThe options controlling the export of the ACIS data.

◆ ExportFBX()

static void HPS.Exchange.File.ExportFBX ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportFBXOptionsKit  in_options 
)
inlinestatic

Performs a synchronous FBX 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the FBX data to.
in_optionsThe options controlling the export of the FBX data.

◆ ExportGLTF()

static void HPS.Exchange.File.ExportGLTF ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportGLTFOptionsKit  in_options 
)
inlinestatic

Performs a synchronous GLTF 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the GLTF data to.
in_optionsThe options controlling the export of the GLTF data.

◆ ExportIGES()

static void HPS.Exchange.File.ExportIGES ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportIGESOptionsKit  in_options 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the IGES data to.
in_optionsThe options controlling the export of the IGES data.

◆ ExportJT()

static void HPS.Exchange.File.ExportJT ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportJTOptionsKit  in_options 
)
inlinestatic

Performs a synchronous JT 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the JT data to.
in_optionsThe options controlling the export of the JT data.

◆ ExportOBJ()

static void HPS.Exchange.File.ExportOBJ ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportOBJOptionsKit  in_options 
)
inlinestatic

Performs a synchronous OBJ 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the OBJ data to.
in_optionsThe options controlling the export of the OBJ data.

◆ ExportParasolid()

static void HPS.Exchange.File.ExportParasolid ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportParasolidOptionsKit  in_options 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the Parasolid data to.
in_optionsThe options controlling the export of the Parasolid data.

◆ ExportPRC() [1/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportPRCOptionsKit  in_options 
)
inlinestatic

Performs an asynchronous PRC 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the PRC data to.
in_optionsThe options controlling the export of the PRC data.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [2/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath []  in_source,
string  in_file_name,
bool  in_compress_tessellation 
)
inlinestatic

Performs an asynchronous PRC export from an A3DAsmModelFile created from a KeyPathArray.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile to export as PRC.
in_file_nameThe name of the file to write the PRC data to.
in_compress_tessellationWhether to compress the tessellation data in the PRC data. Defaults to false.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [3/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath []  in_source,
string  in_file_name 
)
inlinestatic

Performs an asynchronous PRC export from an A3DAsmModelFile created from a KeyPathArray.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile to export as PRC.
in_file_nameThe name of the file to write the PRC data to.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [4/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath  in_source,
string  in_file_name,
bool  in_compress_tessellation 
)
inlinestatic

Performs an asynchronous PRC export from an A3DAsmModelFile created from a KeyPath.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile to export as PRC.
in_file_nameThe name of the file to write the PRC data to.
in_compress_tessellationWhether to compress the tessellation data in the PRC data. Defaults to false.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [5/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath  in_source,
string  in_file_name 
)
inlinestatic

Performs an asynchronous PRC export from an A3DAsmModelFile created from a KeyPath.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile to export as PRC.
in_file_nameThe name of the file to write the PRC data to.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [6/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath []  in_source)
inlinestatic

Performs an asynchronous creation of an A3DAsmModelFile from a KeyPathArray.

Parameters
in_sourceAn array of key paths containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportPRC() [7/7]

static HPS.Exchange.ExportNotifier HPS.Exchange.File.ExportPRC ( HPS.KeyPath  in_source)
inlinestatic

Performs an asynchronous creation of an A3DAsmModelFile from a KeyPath.

Parameters
in_sourceA key path containing the data to export. The geometry and segments under these key paths will be used to create the A3DAsmModelFile.
Returns
An ExportNotfier object that can be used to query the export progress and status.

◆ ExportSTEP()

static void HPS.Exchange.File.ExportSTEP ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportSTEPOptionsKit  in_options 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the STEP data to.
in_optionsThe options controlling the export of the STEP data.

◆ ExportSTL()

static void HPS.Exchange.File.ExportSTL ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportSTLOptionsKit  in_options 
)
inlinestatic

Performs a synchronous STL 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the STL data to.
in_optionsThe options controlling the export of the STL data.

◆ ExportU3D()

static void HPS.Exchange.File.ExportU3D ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportU3DOptionsKit  in_options 
)
inlinestatic

Performs a synchronous U3D 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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the U3D data to.
in_optionsThe options controlling the export of the U3D data.

◆ ExportVRML()

static void HPS.Exchange.File.ExportVRML ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the VRML data to.

◆ ExportXML()

static void HPS.Exchange.File.ExportXML ( HPS.Exchange.CADModel  in_cad_model,
string  in_file_name,
HPS.Exchange.ExportXMLOptionsKit  in_options 
)
inlinestatic

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.

Parameters
in_cad_modelThe 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_nameThe name of the file to write the XML data to.
in_optionsThe options controlling the export of the XML data.

◆ GetConfigurations()

static HPS.Exchange.Configuration [] HPS.Exchange.File.GetConfigurations ( string  in_file_name)
inlinestatic

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.

◆ GetFormat()

static HPS.Exchange.File.Format HPS.Exchange.File.GetFormat ( string  in_file_name)
inlinestatic

Gets the format for the given file as determined by Exchange. May throw an IOException if a problem is encountered when querying the format.

◆ Import() [1/3]

static HPS.Exchange.ImportNotifier HPS.Exchange.File.Import ( string  in_file_name,
HPS.Exchange.ImportOptionsKit  in_options 
)
inlinestatic

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).

Parameters
in_file_nameThe name of the CAD file to import.
in_optionsThe options controlling the import of the CAD file.
Returns
An ImportNotfier object that can be used to query the import progress and status.

◆ Import() [2/3]

static HPS.Exchange.ImportNotifier HPS.Exchange.File.Import ( IntPtr  in_model_file,
HPS.Exchange.ModelFileImportOptionsKit  in_options 
)
inlinestatic

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).

Parameters
in_model_fileThe A3DAsmModelFile to import.
in_optionsThe options controlling the import of the CAD file. Whether these options will have any effect depends on how the A3DAsmModelFile was created.
Returns
An ImportNotfier object that can be used to query the import progress and status.

◆ Import() [3/3]

static HPS.Exchange.ImportNotifier HPS.Exchange.File.Import ( byte []  in_prc_data,
HPS.Exchange.ModelFileImportOptionsKit  in_options 
)
inlinestatic

Performs an asynchronous import of the specified PRC data 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).

Parameters
in_prc_dataBuffer of PRC data to import.
in_optionsThe options controlling the import of the CAD file. Whether these options will have any effect depends on what is contained in the PRC data.
Returns
An ImportNotfier object that can be used to query the import progress and status.

◆ Translate()

static HPS.Exchange.TranslationNotifier HPS.Exchange.File.Translate ( string  in_file_name,
HPS.Exchange.ImportOptionsKit  in_options,
HPS.Exchange.TranslationOptionsKit  in_translation_options 
)
inlinestatic

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.

Parameters
in_file_nameThe name of the CAD file to translate.
in_optionsThe options controlling the translation of the CAD file.
in_translation_optionsOptions used during the translation.
Returns
An TranslationNotifier object that can be used to query the import progress and status.

The documentation for this class was generated from the following file:
  • internals/hps_sprk_exchange/source/cs/HPS.Exchange.cs