Model.movemarkgroup#

Model.movemarkgroup(collection, name)#

Moves main/secondary elements from one group to another.

Parameters:
  • collection (Collection) – The collection containing the main/seconadary element entities to move.

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

Example#

Move all elements from group with ID 1 to “ group2 “#
import hm
import hm.entities as ent

model = hm.Model()

groups_collection = hm.Collection(model, ent.Group, [1])
elements_collection = hm.Collection(
    model, hm.FilterByCollection(ent.Element, ent.Group), groups_collection
)

model.movemarkgroup(collection=elements_collection, name="group2")