API Reference > Functions > SDAI > sdaiCreateInstance Function
sdaiCreateInstance Function
Syntax
C++
DAI_EXPORT SdaiAppInstance sdaiCreateInstance(SdaiModel model, SdaiEntity entity);

sdai.h

Parameters 
Description 
SdaiModel model 
[in] A model.  
SdaiEntity 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.

Creates an application instance within an associated model.

The model should be accessed with the sdaiRW mode.

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

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