Model.ME_ModuleRepresentationRemove2#

Model.ME_ModuleRepresentationRemove2(part_entity, key)#

Removes a representation from a part or a part assembly. Either an occurrence or a prototype can be given.

Parameters:
  • part_entity (Entity) – The object describing the part entity from which to remove the representation.

  • key (hwString) – The representation key (name).

Example#

Remove the “ RepCAD “ representation of part with name “ myPart “#
import hm
import hm.entities as ent

model = hm.Model()

model.ME_ModuleRepresentationRemove2(
    part_entity=ent.Part(model, "name=myPart"), key="RepCAD"
)