Model.modent_removecontentsbyids#
- Model.modent_removecontentsbyids(modular_entity, content_entity_type, content_entity_ids)#
Removes entities from a modular entity via IDs.
- Parameters:
modular_entity (Entity) – The object describing the modular entity to update. Valid values are subsystemconfigurations, subsystems and subsystemsets.
content_entity_type (EntityFullType) – The type of entity to remove.
content_entity_ids (hwString) – A quoted list of the entity IDs to remove.
Examples#
Remove the property with ID 2 from subsystem with id 3#import hm import hm.entities as ent model = hm.Model() model.modent_removecontentsbyids( modular_entity=ent.Subsystem(model, 3), content_entity_type=ent.Property, content_entity_ids="2", )