PK_PART_ask_all_attribs   

PK_ERROR_code_t     PK_PART_ask_all_attribs
(
--- received arguments ---
PK_PART_t           part,           --- part
PK_ATTDEF_t         attdef,         --- attribute definition

--- returned arguments ---
int          *const n_attribs,      --- number of attributes (>= 0)
PK_ATTRIB_t **const attribs         --- attributes (optional)
)


This function returns all the attributes with the given attribute definition
attached to any entity within the given part. If the attribute definition is
PK_ENTITY_null, all attributes are returned, of any type.
If the part is an assembly, only the attributes directly attached to the
assembly and its instances are returned.


Specific Errors:
    PK_ERROR_child_body             (MILD) 'part' is a child body


The output array 'attribs' is optional. If it is set to NULL, the function
will only compute the number of such attributes within the part.