Model.hm_modent_getmodifiedbyids#
- Model.hm_modent_getmodifiedbyids(collection)#
Returns a list of subsystem entities modified after a representation has been realized.
- Parameters:
collection (Collection) – The collection containing the subsystem entities.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:subsystems (EntityList) - Entity Type:
Subsystem
Example#
Get the list of subsystems modified after a representation has been realized#import hm import hm.entities as ent model = hm.Model() model.modent_addrepresentations( entity=ent.Subsystem(model, 3), representation_key="crash5", representation_file="C:/representations/Subsystem1_Crash5mm.k", representation_file_format="Ls-Dyna", ) model.modent_realizerepresentation( entity=ent.Subsystem(model, 3), representation_key="crash5" ) model.modent_addcontentsbymark( modular_entity=ent.Subsystem(model, 3), content_collection=hm.Collection(model, ent.Component, [1, 2, 3]), ) _,result = model.hm_modent_getmodifiedbyids(collection=hm.Collection(model, ent.Subsystem)) print("subsystems", result.subsystems)