Problem with hm_findconnectedpatches
I'm currently using hm_findconnectedpatches to find the number of patches of a collection of elements along their respective extensions.
I'm encountering a strange behaviour where TRIA elements are not considered in the selection.
In other words, by visualizing those patches, you can clearly see TRIA elements have not been added to the selection.
Any idea?
Daniele
Find more posts tagged with
Sort by:
1 - 1 of
11
Hi @Deleus,
This issue has been observed and it has been already solved by our development team. It will be available in HyperMesh 2026.0.
For now if you want to use the command's functionality please use the following:
import hm
import hm.entities as ent
import hw
model=hm.Model()
# Workaround using evalTclhw.evalTcl("*createmark elems 1")
# Create entity listresult=hw.evalTcl("hm_findconnectedpatches elems 1")
result = result.replace("{","")
result = result.replace("}","")
idlist=result.split(" ")
elem_list = [ent.Element(model,int(id)) for id in idlist]
If you have any further query regarding this please do not hesitate to continue the discussion!
Thank you!