Hide menu
Loading...
Searching...
No Matches
Model Reader

Table of Contents

Overview

When reading a file, the result is converted into a common data model that provides common format-neutral data representation and access API.

For file reading, the class ModelData::ModelReader serves as a single entry point. Currently, only reading of STEP format is supported. File are identified by their (asbolute) filenames on a disk.

Reading files

ModelData::ModelReader is the primary class for reading files. The usage is simple, one just has to call a single function with the path to the file that should be read and the target ModelData::Model instance.

The data model object is populated with the contents imported from the file being read. The model is not cleaned up before conversion, therefore a multiple files can be accumulated in the same model.

#include <cadex/ModelData/ModelReader.hxx>
using namespace cadex;
if (!aReader.Read ("myfile.stp", aModel)) {
//error during reading the file
}
Provides MTK data model.
Definition Model.hxx:40
Reads STEP and native format.
Definition ModelReader.hxx:29
bool Read(const UTF16String &theFilePath, ModelData::Model &theModel)
Reads the file at the specified path into the specified model.
Definition ModelReader.cxx:227
Defines classes, namespaces, enums, types, and global functions related to Manufacturing Toolkit.
Definition LicenseManager_LicenseError.hxx:30