Hide menu
Loading...
Searching...
No Matches
cadex::ModelData::ModelReader Class Reference

Reads STEP and native format. More...

#include <cadex/ModelData/ModelReader.hxx>

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

Public Member Functions

 ModelReader ()
 Constructor.
 
bool Read (const UTF16String &theFilePath, ModelData::Model &theModel)
 Reads the file at the specified path into the specified model.
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Member Function Documentation

◆ Read()

bool cadex::ModelData::ModelReader::Read ( const UTF16String & theFilePath,
ModelData::Model & theModel )

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, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/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, and wall_thickness/analyzer/main.cxx.