Model.modent_removecontentsbymark#

Model.modent_removecontentsbymark(modular_entity, content_collection)#

Removes entities from a modular entity via a collection.

Parameters:
  • modular_entity (Entity) – The object describing the modular entity to update.

  • content_collection (Collection) – The collection containing the entities to remove.

Example#

Remove the subsystems with IDs 4, 6 and 8 from the contents of subsystem set with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

model.modent_removecontentsbymark(
    modular_entity=ent.Subsystem(model,2),
    content_collection=hm.Collection(model, ent.Subsystem, [4, 6, 8]),
)