How to select all nodes by path in a Closed Loop by scripting

Sagar Motwani_20540
Sagar Motwani_20540 Altair Community Member
edited October 2020 in Community Q&A

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