API Reference > Functions > SDAI > sdaiFindInstanceUsedIn Function
sdaiFindInstanceUsedIn Function
Syntax
C++
DAI_EXPORT SdaiNPL sdaiFindInstanceUsedIn(SdaiInstance instance, SdaiAttr role, SdaiNPL domain, SdaiNPL resultList);

sdai.h

Parameters 
Description 
SdaiInstance instance 
[in] Identifier of the entity instance whose users are requested.  
SdaiAttr role 
[in] Identifier of the attribute as the role being requested.  
SdaiNPL domain 
[in] Identifier of a NPL containing the SdaiSchemaInstance identifiers of the schema instances that define the domain of the function request.  
SdaiNPL resultList 
[in/out] Identifier of the pre-existing NPL to which the identifiers of the entity instances referencing the current instance by the specified attribute are added.  

Identifier of the result NPL.

Retrieves the identifiers of all the entity instances in the model data that reference the curent entity instance by the specified attribute. 

 

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