sdaiCreateInstance
Syntax
// // Strong typing definition // SdaiInstance sdaiCreateInstance( SdaiModel model, SdaiEntity entity ); // // Weak typing definition // int_t __declspec(dllexport) __stdcall sdaiCreateInstance( int_t model, int_t entity );
Property model
Size: 32 bit / 4 byte (value)Property entity
Size: 32 bit / 4 byte (value)
Example (based on pure API calls)
Here you can find code snippits that show how the API call sdaiCreateInstance can be used.
#include "./include/ifcengine.h" int_t localCreateInstanceBN(int_t model, char * entityName) { // // This function is an alternative to the API call sdaiCreateInstanceBN() // based on sdaiCreateInstance(). // // Use of sdaiCreateInstance() can lead to performance improvement compared to sdaiCreateInstanceBN(). // int_t entity = sdaiGetEntity(model, entityName); return sdaiCreateInstance(model, entity); }