Good afternoon All,
I have a surface with nodes on it.
I need to find the nodes in a component and with y=0 coordinated in order to do some operations on it.
See the image:

I am been able to identify the max X coord (node on the right) but I don't find a strategy to get the node on the right.
My actual code is:
*createmark nodes 1 "by comp" redLoad
set nodeList [ hm_getmark nodes 1 ]
*clearmark nodes 1
set maxim 1
foreach node $nodeList {
set Xmax [ hm_getentityvalue NODES $node "x" 0 ]
if { $Xmax > $maxim } {set maxim $Xmax}
}
Could someone give me an idea

?
Thanks a lot in advance to all.
Regards,
FF