i was trying to finish this tcl that automatically finds the holes and creates rigid and spring elements for that. i am having an issues of creating spring elements.
the issues is 1st set of rigid master node ids are calculated correctly. but 2nd set of rigid master nodes are double in numbers. help me to find hte issue. attaching the script for reference