Model.copymarkgroup#

Model.copymarkgroup(collection, name)#

Copies main/secondary elements from one group to another.

Parameters:
  • collection (Collection) – The collection containing the main/secondary elements entities to copy.

  • name (hwString) – The name of the group to copy the entities to.

Example#

Copy all elements in “group1” to “group2”#
import hm
import hm.entities as ent

model = hm.Model()

model.copymarkgroup(
    collection=hm.Collection(
        model, ent.Element, hm.Collection(model, ent.Group, "name=group1")
    ),
    name="group2",
)