Model.configedit#

Model.configedit(collection, config)#

Changes the configuration of a selection of elements.

Parameters:
  • collection (Collection) – The collection containing the element entities to change the configuration.

  • config (hwString) – The new configuration name to assign. The new configuration cannot add new nodes.

Example#

Set all plot elements to β€œbar2”#
import hm
import hm.entities as ent

model = hm.Model()

model.configedit(
    collection=hm.Collection(model, ent.Element, "config=2"), config="bar2"
)