Model.modent_realizerepresentation#

Model.modent_realizerepresentation(entity, representation_key)#

Loads the contents of a modular entity representation.

Parameters:
  • entity (Entity) – The object describing the modular entity to load the represantation to. Valid entities are subsystems.

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

Example#

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

model = hm.Model()

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