Model.movemark#

Model.movemark(collection, name)#

Moves entities from one collector to another.

Parameters:
  • collection (Collection) – The collection containing the entities to move. Any collected entity type (aside from main/secondary elements) is valid.

  • name (hwString) – The name of the collector to move the entities to. The collector type is determined by the collection.

Example#

Move all elements from component * comp1 * to * comp2 *#
import hm
import hm.entities as ent

model = hm.Model()

components_collection = hm.Collection(model,ent.Component,"name=comp1")
elements_collection = hm.Collection(model, hm.FilterByCollection(ent.Element, ent.Component), components_collection)

model.movemark(collection=elements_collection,name="comp2")