edmiGetScratchEntityExtentBN

edmiGetScratchEntityExtentBN

SdaiAggr edmiGetScratchEntityExtentBN(SdaiString schemaName, SdaiString entityName);

Returns the instances aggregate of the entity extent instance in the scratch model that contains all scratch instances of the specified instance type. The combination of <schemaName> and <entityName> uniquely identifies an entity definition (instance type) in an EDMdatabase. Scratch instances belongs to an EDMserver session, hence scratch instances and scratch entity extents are not persistent in an EDMdatabase. All EDMinterface read access operations that are applicable on SET aggregates are applicable to the returned aggregate.
EXPRESS:
ENTITY entity_extent; 
       definition : entity_definition; 
       instances : SET OF entity_instance;
END_ENTITY;

Arguments


Type

Name

Comment

SdaiEntity

schemaName

Specifies the name of Express schema of interest. This Express schema must exist as a dictionary model in the EDMdatabase. Schema names are case insensitive. Schema names are unique in an EDMdatabase.

SdaiString

entityName

Specifies the name of the entity. Entity names are case insensitive.

Return Value


Options


 

Example


 

 SdaiAggr scratchExtentId; SdaiErrorCode rstat; SdaiInstance id; SdaiInteger index, members; . . . scratchExtentId = edmiGetScratchEntityExtentBN("IFC151", "IFCdoor"); if (! scratchExtentId) { /* Error in operation */ printf("\nError: %s in edmiGetScratchEntityExtentBN\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } members = sdaiGetMemberCounts(scratchExtentId); /* Print instanceID of all scratch instances of the specified type */ for (index = 0; index < members; index++) { edmiGetAggrElement(scratchExtentId, index, sdaiINSTANCE, &id); rstat = sdaiErrorQuery(); if (rstat) { /* Error in operation */ printf("\nError: %s in edmiGetAggrElement\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } printf ("\nInstanceID: %lu", id); } . . .

 

See also