How to get component name or ID to which node is associated?

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

I would like to get the name or the ID of component in which node by using node ID.

 

#25 is node ID

*createmark nodes 1 25

set nodeID [ hm_getmark nodes 1]

 

*createmark comps 1 'by node' 25

set compName [hm_getmark comps1]

 

Above two line are giving error, as component name is not possible to get through node.

 

Is there any other way to get this done?

 

Thank you.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    it's because a node may belong to 2 or more comps

    try using *findmark

    *createmark nodes 1 25

    *findmark nodes 1 1 1 comps 0 2

    puts 'comps: [hm_getmark comps 2]'