Model.modent_unrealizerepresentation#

Model.modent_unrealizerepresentation(entity, representation_key, etypesExcluded_unused='', excludeOption_unused=0)#

Unloads the contents of a modular entity representation.

All entities that were brought into the session by loading the representation get deleted except for parts, partassemblies, partsets, and partconfigurations.

Parameters:
  • entity (Entity) – The entity to unload the represantation from. Valid entities are subsystems.

  • representation_key (hwString) – The representation key to unload. This is unique per subsystem.

  • etypesExcluded_unused (hwString) – Reserved for future development.

  • excludeOption_unused (int) – Reserved for future development.

Example#

Unload the contents of the representation with key “crash5” from subsystem with ID 3#
import hm
import hm.entities as ent

model = hm.Model()

model.modent_unrealizerepresentation(
    entity=ent.Subsystem(model, 3),
    representation_key="crash5"
)