Model.currentcollector#
- Model.currentcollector(entity_type, name)#
Sets the current collector.
- Parameters:
entity_type (EntityFullType) – Collector type which the current collector should be set to. Valid entities are components, systcol and loadcol.
name (hwString) – The name of the collector which should be made current.
Example#
Set the current component to component named “ comp_1 “#import hm import hm.entities as ent model = hm.Model() model.currentcollector(entity_type=ent.Component, name="comp_1")