Model.hm_me_parentsget#
- Model.hm_me_parentsget(moduledID)#
Returns the recursive list of parent set of IDs.
- Parameters:
moduledID (int) – The ID of the part to query.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:parentIDs (numpy.ndarray)
Example#
Get the recursive parents of part with ID 10#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_me_parentsget(moduledID=10) print("parentIDs", result.parentIDs)