Model.hm_me_occrepkeyget#

Model.hm_me_occrepkeyget(part)#

Returns the representation key of a part occurrence. A part occurrence should be given.

Parameters:

part (Entity) – The object describing the entity of a part or part assembly from which to retrieve the representation key.

Returns:

Example#

Retrieve the representation key from part with name ( UID ) “ Bottom_skin “#
import hm
import hm.entities as ent

model = hm.Model()

_,result = model.hm_me_occrepkeyget(part=ent.Part(model, "Bottom_skin"))

print("repKey", result.repKey)