Model.library_delete_rep#

Model.library_delete_rep(entities, data_strings, repDefAliasList)#

Deletes representations from an opened library.

Parameters:
  • entities (EntityFullType) – The entity class stored in the library. Currently supported for parts and subsystems.

  • data_strings (hwStringList) – The list of strings containing UID, Major Revision, and Study Revision.

  • repDefAliasList (hwString) – The string defining the representation alias list.

Example#

Delete the “NVH 10mm” representation of major revision A or part with UID LeftInner_A#
import hm
import hm.entities as ent

model = hm.Model()

model.library_delete_rep(
    entities=ent.Part,
    data_strings=["LeftInner_A", "A", "-"],
    repDefAliasList="NVH 10mm"
)