API Reference > Classes > Database Classes > OdBmHostAppServices Class > OdBmHostAppServices Methods > OdBmHostAppServices::createDatabase Method
OdBmHostAppServices::createDatabase Method
Syntax
C++
virtual OdBmDatabasePtr createDatabase(bool createDefault = true) 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.) 

Creates an instance of an OdBmDatabase object.

Returns the newly created *database*. 

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

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.