Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
Model::createEntityInstance Method (const OdDAI::Entity *)
Syntax
C++
ApplicationInstancePtr createEntityInstance(const OdDAI::Entity * entityDef);

Creates a new instance of a specified entity type.

Parameters
Description
entityDef
[in] A raw pointer to the entity definition that contains the type name of the new entity to be created.

A smart pointer to the created entity instance.

If the current schema does not support the specified type, the method returns a NULL smart pointer. In this case, the isNull() method of the smart pointer object returns true. The created entity is not attached to the model and doesn't have object identifier.

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