To tackle the above problem I'm doing:
import hm
import hm.entities as ent
model = hm.Model()
collection = hm.Collection(model, ent.Element, hm.Collection(model, ent.Set, f"Name={ply.name}"))
area = model.hm_getmass(collection)
This seems to work just fine but starts to run a lot slower when dealing with hundreds of plies for larger models.
Is this the most efficient way of doing it? Is there a faster way?
Thanks as usual, Daniele