Model.modent_deleterepresentation#
- Model.modent_deleterepresentation(collection, representation_key, delete_representation_file=0)#
Deletes the representation information from a collection of modular entities.
- Parameters:
collection (Collection) – The collection containing the modular entities to delete the representation from. Valid entities are subsystems.
representation_key (hwString) – The key of the representation to delete, which is unique per subsystem.
delete_representation_file (unsigned int) –
0 - Keep the representation file in the file system.
1 - Delete the representation file from the file system.
Example#
Delete the information for representation with key “crash5” from subsystem with ID 3, and keep the file in the file system#import hm import hm.entities as ent model = hm.Model() model.modent_deleterepresentation( collection=hm.Collection(model, ent.Subsystem, [3]), content_entity_type="crash5", representation_key=0, )