Model.deletemark#

Model.deletemark(collection)#

Deletes entities from the database.

Parameters:

collection (Collection) – The collection containing the entities to be deleted.

Note

This function cannot be used to delete nodes, unless they are temporary nodes that are not connected to any other HyperMesh entity.

Example#

Delete the lines with IDs 12 , 13 , and 14#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the lines to be deleted
lines_collection = hm.Collection(model, ent.Line, [12, 13, 14])

model.deletemark(collection=lines_collection)