API Reference > OdDb Classes > OdDbHostAppServices Class > OdDbHostAppServices Methods > OdDbHostAppServices::createDatabase Method
OdDbHostAppServices::createDatabase Method
Syntax
C++
virtual OdDbDatabasePtr createDatabase(bool createDefault = true, OdDb::MeasurementValue measurement = OdDb::kEnglish) const;
Parameters 
Description 
bool createDefault = true 
[in] If and only if true, the newly created database will be populated with the default set of objects (all tables, ModelSpace and PaperSpace blocks etc.)  
OdDb::MeasurementValue measurement = OdDb::kEnglish 
[in] Units of measurement for creating the database. 

Creates an instance of an OdDbDatabase object. 

 

Returns the newly created database. 

This HostAppServices object will be associated with the newly created database. 

measurement must be one of the following: 

 

Name 
Value 
Description 
OdDb::kEnglish 
English 
OdDb::kMetric 
Metric 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.