Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbHostAppServices::createDatabase Method
Syntax
C++
virtual OdDbDatabasePtr createDatabase(bool createDefault = true, OdDb::MeasurementValue measurement = OdDb::kEnglish) const;

Creates an instance of an OdDbDatabase object. 

 

Parameters
Description
createDefault
[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.)
measurement
[in] Units of measurement for creating the database.

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
0
English
OdDb::kMetric
1
Metric
Copyright © 2002-2022. Open Design Alliance All rights reserved.