Model.hm_clearmarker_bycollection#

Model.hm_clearmarker_bycollection(collection, dataname='')#

Clears the graphical marker on a collection created by Model.hm_plotmarker_bycollection(), Model.hm_plotmarker_byentity() functions.

Parameters:
  • collection (Collection) – The collection containing the entities to clear markers for. Valid entities are nodes, elements, points, lines, surfaces and solids.

  • dataname (hwString) – The dataname or attribute to clear markers for.

Returns:

Examples#

Clear the “ i d “ dataname markers for elements with IDs 1 - 100#
import hm
import hm.entities as ent

model = hm.Model()

element_collection = hm.Collection(model, ent.Element, list(range(1, 101)))

model.hm_clearmarker_bycollection(collection=element_collection, dataname="id")
Clear all markers for elements with IDs 1 - 100#
import hm
import hm.entities as ent

model = hm.Model()

element_collection = hm.Collection(model, ent.Element, list(range(1, 101)))

model.hm_clearmarker_bycollection(collection=element_collection)