🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Problem with hm_findconnectedpatches

User: "Deleus"
Altair Community Member

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 evalTcl

    hw.evalTcl("*createmark elems 1")
    result=hw.evalTcl("hm_findconnectedpatches elems 1")
    result = result.replace("{","")
    result = result.replace("}","")
    idlist=result.split(" ")

    # Create entity list

    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!