API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > initialize Method > OdIfcFile::initialize Method (OdAnsiString &)
OdIfcFile::initialize Method (OdAnsiString &)
Syntax
C++
OdResult initialize(const OdAnsiString & schemaName);
Parameters 
Description 
schema 
[in] A string that contains the schema name.  

eOk if the file was successfully initialized; otherwise, the method returns an appropriate error code.

Initializes the IFC file object with a schema specified by its name.

IfcFile object without underlying OdDAI::Model object will be created if schema name is empty.

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