Model.ME_ModuleRepresentationRemoveFile2#

Model.ME_ModuleRepresentationRemoveFile2(part_entity, key, filename)#

Removes a representation file 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 represantion file.

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

  • filename (hwString) – The representation filename (complete file path).

Example#

Remove a representation file from part with name “ myPart “#
import hm
import hm.entities as ent

model = hm.Model()

model.ME_ModuleRepresentationRemoveFile2(
    part_entity=ent.Part(model, "name=myPart"),
    key="RepCAD",
    filename="S:/ALT13120121_003_XML71.jt",
)