API Reference > OdDg Classes > OdDgHostAppServices Class > OdDgHostAppServices Methods > OdDgHostAppServices::createDatabase Method
OdDgHostAppServices::createDatabase Method
Syntax
C++
virtual OdDgDatabasePtr createDatabase(DatabaseDefaultContent defaultContent = kDbDefaultModelIs3d) const;
Parameters 
Description 
DatabaseDefaultContent defaultContent = kDbDefaultModelIs3d 
[in] If it is not equal to kNotInitialized, the newly created database will be populated with the default set of objects. 

Returns the newly created database.

Creates an instance of an OdDgDatabase object. 

 

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

Copyright © 2002–2021. Open Design Alliance. All rights reserved.