Model.hm_aic_getpartids#
- Model.hm_aic_getpartids(classifier_name)#
Returns IDs of part entities added in all labels in the classifier.
- Parameters:
classifier_name (hwString) – The name of the classifier.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:label_list (
HmQueryResultList)-Result list object containingHmQueryResultobjects with the following output data:label_details (
HmQueryResultList)-Result list object containingHmQueryResultobjects with the following output data:label_name (str)
label_ids_list (
HmQueryResultList)-Result list object containingHmQueryResultobjects with the following output data:label_ids (int)
Example#
Get all parts added in labels in the classifier “CarDemo”#import hm import hm.entities as ent model = hm.Model() _, resultlist = model.hm_aic_getpartids(classifier_name="CarDemo") for i in resultlist: for j in i.label_list: for k in j.label_details: print("Label Name:", k.label_name) for l in k.label_ids_list: print("\tPart ID in the current label:", l.label_ids)