How to get component name or ID to which node is associated?
Altair Forum User
Altair Employee
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.
Tagged:
0
Answers
-
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]'
0