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.
 
ModelData_BIMHostElement Root () const
 Returns root BIM element as entry point to BIM elements hierarchy.
 
void SetRoot (const ModelData_BIMHostElement &theElement)
 Sets root BIM element as entry point to BIM elements hierarchy.
 
void Accept (ModelData_BIMElementVisitor &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.

ModelData_BIMModel::ModelData_BIMModel(): myImpl (new internal::ModelData_BIMModelImpl()) 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.

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

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