Model.groupcreatesameas#

Model.groupcreatesameas(newname, existingname, color)#

Creates a new group using an existing group’s dictionary/attribute data and type information.

Parameters:
  • newname (hwString) – The name of the group to be created.

  • existingname (hwString) – The name of the group to copy dictionary/attribute information from.

  • color (int) – The color of the group.

Example#

Changes a new group back using the information in the group front, and color 12#
import hm
import hm.entities as ent

model = hm.Model()

model.groupcreatesameas(newname="back", existingname="front", color=12)