Model.removeelemsfromcontactsurf#

Model.removeelemsfromcontactsurf(name, elem_collection)#

Removes elements from a contactsurf entity. If all elements are removed the empty contactsurf still exists.

Parameters:
  • name (hwString) – The name of the contactsurf entity.

  • elem_collection (Collection) – The collection containing the element entities to remove.

Example#

Remove the elements with IDs 100 and 101 from the contactsurf “ test “#
import hm
import hm.entities as ent

model = hm.Model()

model.removeelemsfromcontactsurf(
    name="test", elem_collection=hm.Collection(model, ent.Element, [100, 101])
)