Model.deleteidrange#
- Model.deleteidrange(submodel_type, id, shortname, entity_type, pool_id)#
Deletes an ID range for a submodel.
- Parameters:
submodel_type (hwString) – The type of submodel to delete the ID range for. Valid values are “includes” and “includefiles”.
id (unsigned int) – The ID of the submodel. Not required if
shortnameis used.shortname (hwString) – The shortname of the submodel. Not required if
idis used.entity_type (hwString) – The type of entity to delete the ID range for.
pool_id (unsigned int) – The optional ID of the solver pool. If not something specific is going to be used, please use
pool_id=0
Example#
Delete an ID range for include with ID 1 for components#import hm import hm.entities as ent model = hm.Model() model.deleteidrange(submodel_type="includes", id=1, shortname="", entity_type="comps", pool_id=0)