Model.meshline_mark_entity_inside_class#

Model.meshline_mark_entity_inside_class(collection1, collection2)#

Marks entities as being inside a meshline class.

Parameters:
  • collection1 (Collection) – The collection containing the new entities to add meshline class. Valid values are node and element entities.

  • collection2 (Collection) – The collection containing the previous entities.

Example#

Add element with ID 500 inside a meshline class#
import hm
import hm.entities as ent

model = hm.Model()

elem_collection = hm.Collection(model,ent.Element, [500])

model.meshline_mark_entity_inside_class(collection1=elem_collection,collection2=hm.Collection(model,ent.Element,populate=False))