edmiValueUnique


 

EdmiError edmiValueUnique(SdaiAggr    aggr,
                           SdaiLogical *result); 

Implements the Express built in function Value_Unique as defined in section 15.29 Value_unique – uniqueness function; in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual. The Value_Unique function returns a SdaiLogical value depending on whether or not the elements in the specified <aggr> are value unique or not. This operation uses value comparison (deep comparison).This operation is only applicable on data models. The actual data model must be open before this operation can be successfully performed.

Arguments


TypeNameComment
SdaiAggr

aggr

A numeric aggregateID that uniquely identifies the aggregate of interest in the EDMdatabase. The aggregateID is returned when the aggregate is created or it can be retrieved with an EDMinterface get operation.

SdaiLogical

result

Address of a SdaiLogical variable that will receive the result of the Value_Unique operation. The returned result is as follows:

  • sdaiTRUE: elements in <aggr> are value unique
  • sdaiFALSE: elements in <aggr> are not value unique
  • sdaiUNKNOWN: Unpredictable result due to unset values or error in operation. Use sdaiErrorQuery to check for error in operation.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

EdmiError rstat;
 SdaiAggr aggr;
 SdaiLogical result;
 . . .
 if (rstat = edmiValueUnique (aggr, &result)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiValueUnique \n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 switch (result) {
 case sdaiTRUE: 
 . . . /* Aggregate elements are value unique */ 
 break; 
 case sdaiFALSE: 
 . . . /* Aggregate elements are not value unique */ 
 break; 
 default: 
 . . . /* Unpredictable result */ 
 break; 
 }
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.