Model.exclusiveidrange#
- Model.exclusiveidrange(submodel_type, id, shortname, entity_type, pool_id)#
Sets an exclusive ID range for a submodel.
- Parameters:
submodel_type (hwString) – The submodel type to sets the exclusive ID range for. Valid values are includes and includefiles.
id (unsigned int) – The submodel ID. Not required, if shortname is used.
shortname (hwString) – The shortname of the submodel. Not required if id is used.
entity_type (hwString) – The entity type to set the exclusive ID range for.
pool_id (unsigned int) – The optional ID of the solver pool.
Example#
Set an exclusive component ID range for include 1#import hm import hm.entities as ent model = hm.Model() model.exclusiveidrange( submodel_type="inludes", id=1, shortname="", entity_type="ent.Component", pool_id=0 )