Hide menu
Loading...
Searching...
No Matches
cadex.ModelData_ModelReader Class Reference

Reads any format that CAD Exchanger can import. More...

Inherits global.SystemIDisposable.

Public Member Functions

 ModelData_ModelReader (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 ModelData_ModelReader ()
 Constructor.
 
bool Read (Base_UTF16String theFilePath, ModelData_Model theModel)
 
bool Read (Base_UTF16String theFilePath, ModelData_BIMModel theModel)
 
void SetReaderParameters (Base_ReaderParameters theParameters)
 Sets reader parameters.
 
void SetProgressStatus (Base_ProgressStatus theProgressStatus)
 Sets the progress status for the reading process.
 
Base_ProgressStatus ProgressStatus ()
 Returns the progress status for the reading process.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Reads any format that CAD Exchanger can import.

Use this class to streamline the code where multiple formats have to be read in a uniform fashion. This reader handles the task of determining the suitable reader itself, the client code then receives the resulting ModelData_Model.

Each CAD Exchanger reader has its own binary. This class will load the binaries of readers at runtime for its operation. No linking is done at compile-time. If you're planning to omit some CAD Exchanger libraries from your software distribution, make sure to include the libraries for all the formats you intend to read.

Examples
Eyeshot/conversion/MainForm.cs, MTKConverter/Program.cs, MTKConverter/main.cxx, Unigine/source/ModelImporter.cpp, Unity/Assets/Scripts/ModelImporter.cs, advgeom/brepsimplify/Program.cs, advgeom/brepsimplify/main.cxx, advgeom/meshsimplify/Program.cs, advgeom/meshsimplify/main.cxx, bim/exploring/Program.cs, bim/exploring/main.cxx, conversion/cdxwebconverter/Program.cs, conversion/cdxwebconverter/main.cxx, conversion/export/Program.cs, conversion/export/main.cxx, conversion/screenshot/Program.cs, conversion/screenshot/main.cxx, conversion/transfer/Program.cs, conversion/transfer/main.cxx, conversion/transferparams/Program.cs, conversion/transferparams/main.cxx, exploring/appearance/Program.cs, exploring/appearance/main.cxx, exploring/bom/Program.cs, exploring/bom/main.cxx, exploring/brepgeometry/Program.cs, exploring/breprepresentation/Program.cs, exploring/breprepresentation/main.cxx, exploring/configurations/Program.cs, exploring/configurations/main.cxx, exploring/drawings/Program.cs, exploring/drawings/main.cxx, exploring/layers/Program.cs, exploring/layers/main.cxx, exploring/pmi/Program.cs, exploring/pmi/main.cxx, exploring/polyrepresentation/Program.cs, exploring/polyrepresentation/main.cxx, exploring/propertytable/Program.cs, exploring/propertytable/main.cxx, exploring/transformations/Program.cs, exploring/transformations/main.cxx, machining/dfm_analyzer/Program.cs, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/Program.cs, machining/feature_recognizer/main.cxx, meshing/mefisto/Program.cs, meshing/mefisto/main.cxx, meshing/netgen/Program.cs, meshing/netgen/main.cxx, meshing/remeshing/Program.cs, meshing/remeshing/main.cxx, meshing/visualizationmesher/Program.cs, meshing/visualizationmesher/main.cxx, misc/logging/Program.cs, misc/logging/main.cxx, modeling/elementremoval/Program.cs, modeling/elementremoval/main.cxx, modification/coloring/Program.cs, modification/coloring/main.cxx, modification/renaming/Program.cs, modification/renaming/main.cxx, modification/rotation/Program.cs, modification/rotation/main.cxx, sheet_metal/dfm_analyzer/Program.cs, sheet_metal/dfm_analyzer/main.cxx, sheet_metal/feature_recognizer/Program.cs, sheet_metal/feature_recognizer/main.cxx, sheet_metal/unfolder/Program.cs, sheet_metal/unfolder/main.cxx, visualization/offscreen/Program.cs, visualization/offscreen/main.cxx, visualization/qtquick_qml/baseviewer/main.cxx, visualization/winforms/baseviewer/Program.cs, visualization/wpf/baseviewer/App.xaml.cs, wall_thickness/analyzer/Program.cs, wall_thickness/analyzer/main.cxx, wall_thickness/visualization/Program.cs, and wall_thickness/visualization/main.cxx.

Member Function Documentation

◆ SetReaderParameters()

void cadex.ModelData_ModelReader.SetReaderParameters ( Base_ReaderParameters  theParameters)

Sets reader parameters.

Any child of Base_ReaderParameters can be passed to this function and it will affect the reading of the corresponding format only. Call multiple times with parameter objects for different readers to customize the behavior of these readers.

Examples
Unity/Assets/Scripts/ModelImporter.cs, conversion/transferparams/Program.cs, conversion/transferparams/main.cxx, exploring/configurations/Program.cs, exploring/configurations/main.cxx, exploring/drawings/Program.cs, exploring/drawings/main.cxx, exploring/pmi/Program.cs, exploring/pmi/main.cxx, visualization/offscreen/main.cxx, visualization/qtquick_qml/baseviewer/main.cxx, visualization/winforms/baseviewer/Program.cs, and visualization/wpf/baseviewer/App.xaml.cs.