How to check if a specific solid has been meshed in HyperMesh using TCL?

User: "asdfsdfasdfasdfasdf"
Altair Community Member

I have a question. After selecting a solid, how can I determine if this solid has already been meshed?

My current method doesn't seem to detect this properly. Do you know any TCL commands or approaches that can help with this?

hm_createmark elems 1 "by solids" $solid_id

My original idea was to first identify the component containing the selected solid, and then use [hm_getmark elems 1] to check if elements exist. However, this approach seems problematic if the component contains multiple solids, and the elements happen to be associated with other solids rather than the one I selected.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Fred_Juras"
    Altair Employee
    Accepted Answer

    Hi,


    There's no API to select unmeshed solids. But there's one for unmeshed surfaces ⇒ hm_getunmeshedsurfstomark

    For instance:

    #select all surfaces
    *createmark surfaces 1 all
    #get unmeshed surfaces in mark 2
    hm_getunmeshedsurfstomark 1 2
    #retrieve solids from previous unmeshed surfaces
    hm_createmark solids 1 "by surface on mark"

    Does this method work for you?

    Regards,
    Fred.