Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_BIMModel Class Reference

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_UTF16StringName () 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).
 

Detailed Description

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.

See also
Building Information Modeling (BIM)
Examples
bim/exploring/Program.cs, and bim/exploring/main.cxx.

Constructor & Destructor Documentation

◆ ModelData_BIMModel()

cadex::ModelData_BIMModel::ModelData_BIMModel ( )

Constructor.

Creates a model with empty Root element.

Member Function Documentation

◆ AssignUuids()

void cadex::ModelData_BIMModel::AssignUuids ( )

Assigns UUID's (persistent id's) to all BIM elements and their geometric representations (if not assigned yet).

◆ Open()

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.

See also
Save().

◆ Save() [1/2]

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.

Note
Saving the model in CDX format is not supported for the WIN32 platform.
See also
Open().

◆ Save() [2/2]

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.

Note
Saving the model in CDX and CDXWEB formats is not supported for the WIN32 platform.
See also
Open().