Model.ME_ModuleOccurrencesDeleteByMark#
- Model.ME_ModuleOccurrencesDeleteByMark(collection, options=s_defaultString)#
Deletes a collection of modules.
The part must be an occurrence and cannot be root.
- Parameters:
collection (Collection) – The collection containing the part entities to delete.
options (hwString) – Reserved for future development.
Example#
Delete the parts with IDs 1-11#import hm import hm.entities as ent model = hm.Model() model.ME_ModuleOccurrencesDeleteByMark( collection=hm.Collection(model, ent.Part, list(range(1, 11))) )