Hide menu
Loading...
Searching...
No Matches

Reads supported formats, see Import section. More...

Inheritance diagram for cadex.ModelData.ModelReader:
cadex.BaseObject

Public Member Functions

 ModelReader (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 ModelReader ()
 Constructor.
 
cadex.ModelData.ModelReaderParameters Parameters ()
 Returns reader parameters.
 
void SetParameters (cadex.ModelData.ModelReaderParameters theParameters)
 Sets reader parameters.
 
bool Read (cadex.UTF16String theFilePath, cadex.ModelData.Model theModel)
 Reads the file at the specified path into the specified model.
 
void SetProgressStatus (cadex.ProgressStatus theStatus)
 
cadex.ProgressStatus ProgressStatus ()
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static cadex.ModelData.ModelReader Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Member Function Documentation

◆ Dispose()

override void cadex.ModelData.ModelReader.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ Read()

bool cadex.ModelData.ModelReader.Read ( cadex.UTF16String theFilePath,
cadex.ModelData.Model theModel )
inline

Reads the file at the specified path into the specified model.

Returns true if the reading process succeeded, false otherwise.

Note
Aside from the exceptions listed below, this function call may be interrupted by exceptions.
Exceptions
BaseError_MissingFileif the file can't be found at the specified path.
BaseError_MissingModuleif no reader for the specified file could be found (either because the format is not supported by Manufacturing Toolkit, or because a related module couldn't be loaded).
LicenseManager_LicenseErrorif the corresponding reader was found but there was no active license for it.
Examples
MTKConverter/Program.cs, MTKConverter/main.cxx, exploring/bom/main.cxx, exploring/drawings/Program.cs, exploring/drawings/main.cxx, exploring/mesh/main.cxx, exploring/pmi/main.cxx, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/main.cxx, meshing/mesh_generation/Program.cs, meshing/mesh_generation/main.cxx, molding/dfm_analyzer/main.cxx, molding/feature_recognizer/main.cxx, projector/poly_projector/main.cxx, sheet_metal/dfm_analyzer/main.cxx, sheet_metal/feature_recognizer/main.cxx, sheet_metal/unfolder/main.cxx, utilities/progress_bar/Program.cs, utilities/progress_bar/main.cxx, and wall_thickness/analyzer/main.cxx.