Get nodeset from node id

User: "Akash Purushothaman"
Altair Community Member
Updated by Akash Purushothaman

I need to get the list of all nodesets which has a particular node id in its children.

Is there any TCL API that could help achieve this?

Find more posts tagged with

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

    Hi @Adriano A. Koga.. I tried this API, it returns only the cross referenced entity type (in my case it shows only elems & sets).

    image

    I would like to get the entity set name or id in reference with the node id.. Thanks in advance!!

    i believe you're missing only retrieving the entities from the output selection (mark), with hm_getmark sets (mark number).

    INPUT> node ID

    OUTPUT> a list of entities related to the input, outputted into the desired mark (selection bin).

    >>to retrieve the output, use hm_getmark entity_type mark_number

     

    I've used a similar command below. My command has returned the cross-referenced entities into mark #1. Then I've used a few hm commands to retrieve their ids and names.

    image