Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
sdaiCreateInstance Function
Syntax
C++
DAI_EXPORT SdaiAppInstance sdaiCreateInstance(SdaiModel model, SdaiEntity entity);

Creates an application instance within an associated model.

Parameters
Description
model
[in] A model.
entity
[in] An entity to be created.

A created application instance represented with its pointer if it was created successfully; otherwise, the function returns a NULL pointer.

The model should be accessed with the sdaiRW mode.

SdaiModel model = ...; SdaiEntity entCartesianPoint = sdaiGetEntity(model, "IfcCartesianPoint"); SdaiAppInstance cartesianPoint = sdaiCreateInstance(model, entCartesianPoint);

File: sdai.h

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