sdaiIsInstanceOfBN


Determines whether an instance is an instance of exactly the specified instance type. This operation returns sdaiTRUE if the specified instance is of exactly the specified instance type, else sdaiFALSE is returned.
The model that holds the actual instance must be open before this operation can be successfully performed.
Related functions: sdaiIsInstanceOf , sdaiIsKindOf , sdaiIsKindOfBN , sdaiGetInstanceType
Header:
#include "sdai.h"
Prototype:
SdaiBoolean sdaiIsInstanceOfBN(SdaiInstance instance,
                                SdaiString   entityName); 
Arguments:

instance

A numeric instanceID that uniquely identifies the instance of interest in the EDMdatabase.
The instanceID is defined by a sdaiCreateInstance or a sdaiCreateInstanceBN function.

entityName

The entity name that in combination with the <instance> argument, uniquely identifies an entity definition instance in the EDMdatabase. This entity definition instance identifies the actual instance type. Entity names are case insensitive. An entity name is unique within one model.

Returns:
sdaiTRUE : The actual instance is an instance of the specified instance type.
sdaiFALSE : The actual instance is not an instance of the specified instance type. Use sdaiErrorQuery to check for error during operation.
Example:
SdaiAppInstance anInst;
...
if(sdaiIsInstanceOfBN(anInst, "Man") == sdaiTRUE) {
. . . 
}
. . .