Model.ME_ModuleOccurrenceDelete#
- Model.ME_ModuleOccurrenceDelete(part_entity)#
Deletes a module part, including any recursive contents.
- Parameters:
part_entity (Entity) – The object describing the part entity to delete. The module must be an occurrence.
Example#
Delete the part module with ID 168 and all its recursive contents#import hm import hm.entities as ent model = hm.Model() model.ME_ModuleOccurrenceDelete(part_entity=ent.Part(model, 168))