Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
OdIfcHostAppServices::createDatabase Method (IfcSchema)
Syntax
C++
virtual OdIfcFilePtr createDatabase(IfcSchema initialSchema = kScmUndefined) const;

Creates a new instance of the OdIfcFile class.

Parameters
Description
initialSchema
[in] An initial schema to be used for the new instance creation.

A smart pointer to the OdIfcFile object that represents the created database instance.

If the parameter is equal to the kScmUndefined value, the created .ifc file doesn't have underlying OdDAI::Model object. This way of initialization is used for the file open operation when the underlying model should be created during the file loading process. The host application services object is associated with the newly created database.

Copyright © 2002-2022. Open Design Alliance All rights reserved.