Provides CAD Exchanger BIM data model. More...
Public Member Functions | |
ModelData_BIMModel () | |
Constructor. | |
bool | Save (const Base_UTF16String &theFileName, const Base_ProgressStatus &theProgressStatus=Base_ProgressStatus()) const |
Saves the model object to a file. | |
bool | Save (const Base_UTF16String &theFileName, const ModelData_BIMWriterParameters &theParameters, const Base_ProgressStatus &theProgressStatus=Base_ProgressStatus()) const |
Saves the model object to a file. | |
bool | Open (const Base_UTF16String &theFileName, const Base_ProgressStatus &theProgressStatus=Base_ProgressStatus()) |
Loads the model object from the file. | |
void | SetName (const Base_UTF16String &theName) |
Sets BIM model name. | |
const Base_UTF16String & | Name () const |
Returns BIM model name. | |
void | AddProperties (const ModelData_BIMPropertyLibrary &theProperties) |
Adds BIM model properties. | |
ModelData_BIMPropertyLibrary | Properties () const |
Returns BIM model properties. | |
ModelData_BIMSite | Root () const |
Returns root BIM element as entry point to BIM elements hierarchy. | |
void | SetRoot (const ModelData_BIMSite &theSite) |
Sets root BIM element as entry point to BIM elements hierarchy. | |
void | AssignUuids () |
void | Accept (ModelData_BIMVisitor &theVisitor) const |
Accepts a visitor. | |
internal::ModelData_BIMModelImpl * | Impl () const |
Returns an implementation object (reserved for internal use). | |
Provides CAD Exchanger BIM data model.
The BIM data model encapsulates data about BIM elements and their hierarchy and is thus an entry point to entire BIM model data, including elements, geometry, properties, materials.
cadex::ModelData_BIMModel::ModelData_BIMModel | ( | ) |
Constructor.
Creates a model with empty Root element.
void cadex::ModelData_BIMModel::AssignUuids | ( | ) |
Assigns UUID's (persistent id's) to all BIM elements and their geometric representations (if not assigned yet).
bool cadex::ModelData_BIMModel::Open | ( | const Base_UTF16String & | theFileName, |
const Base_ProgressStatus & | theProgressStatus = Base_ProgressStatus() |
||
) |
Loads the model object from the file.
The method can be called on a nullified model.
bool cadex::ModelData_BIMModel::Save | ( | const Base_UTF16String & | theFileName, |
const Base_ProgressStatus & | theProgressStatus = Base_ProgressStatus() |
||
) | const |
Saves the model object to a file.
Any folders you specify in the output path that are not yet present in the filesystem will be created automatically.
bool cadex::ModelData_BIMModel::Save | ( | const Base_UTF16String & | theFileName, |
const ModelData_BIMWriterParameters & | theParameters, | ||
const Base_ProgressStatus & | theProgressStatus = Base_ProgressStatus() |
||
) | const |
Saves the model object to a file.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Any folders you specify in the output path that are not yet present in the filesystem will be created automatically.