How to select all nodes by path in a Closed Loop by scripting
Hi,
For selecting nodes by path, I have tried >>
*nodelistbypath $node1 $node2 1
*entitysetcreatelist temp_nodes nodes 1
But this works only for a open path or shortest path from node1 to node2 in closed loop.
Please help me in above matter for selecting all nodes on a path.
P.S. I have a line with its ID on that path. For any idea related to nodes on that line. And, I don't want to go with -->
*nodelistbypath $node1 $node_mid_path 1
*nodelistbypath $node_mid_path $node2 2
>>Union 1 and 2<<
*nodelistbypath $node2 $node1 2
>>Union 1 and 2<<
Answers
-
Try *findloops
https://community.altair.com/community?id=community_question&sys_id=d45684b61b2bd0908017dc61ec4bcbb4
Once getting loop elems, use hm_getvalue to return their nodes (will be ordered as by *nodelistbypath)
0 -
zx
0