...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiGetAllAttrsOfEntity(SdaiEntity entity,
SdaiInteger *nAttributes,
SdaiAttr *attributes);
|
Returns the attributeID of all attributes belonging to the specified entity definition instance. Redeclared and inherited attributes will also be returned. The inherited attributes will be returned first in the resulting buffer, hence the order of the attributes is the same as the order on a STEP Physical File and as displayed by the EDMsupervisor Schemata>FlattenEntity command. An attributeID uniquely defines an attribute definition instance in an EDMdatabase.
Info |
---|
...
In this context entity definition also represents a view_entity, and an attributeID also represents a view_entity attributeID. |
The dictionary model that contains the specified entity definition or view_entity instance must be open before this operation can be successfully performed.
...
Arguments
...
Type | Name | Comment | |
SdaiEntity | entity | A numeric entityID that uniquely identifies the entity definition or view_entity instance of interest in the EDMdatabase. | The entityID is returned by the sdaiGetEntity function. |
SdaiInteger | nAttributes | This argument has an in-value and an out-value:
| |
attributes | Address of the buffer in the calling application that will receive the attributeID of all attributes that belongs to the specified entity definition or view_entity instance. Redeclared attributes and inherited attributes will be included in the returned set of attributes. The order of the attributes is as described in ISO 10303 Part 21. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
i nt i; EdmiError rstat; SdaiInteger nAttributes; SdaiEntity personId; SdaiAttr attributes[MAX_ATTRS]; |
...
. . . |
...
nAttributes = ATTRS; |
...
if (rstat = edmiGetAllAttrsOfEntity(personId, |
...
&nAttributes, |
...
attributes)) { |
...
/* Error in operation */ |
...
printf("\nError: %s in edmiGetAllAttrsOfEntity\n", |
...
edmiGetErrorText(rstat)); |
...
goto error; |
...
} /* Print out the instanceId of the attributes */ |
...
for (i = 0; i < nAttributes; i++) { |
...
printf("\nattributeId: %12lu",attributes[i]); |
...
} |
...
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|