How to create a node in the center by selecting one circular curve?


Hi all,
In hypermesh, we can create a node in the center by selecting three node on a circular curve. How can we script this?
Roy


Open command.tcl file you will see the script
Hi tinh,
I know your meaning. When using GUI, the center node can be created by selecting three nodes. How can we create the center node directly by only selecting one circular line not three nodes by using script?
Roy

#
# to loop trough many crucial lines at one selection :
*createmarkpanel lines 1 'Select all lines to put temp-node at center';
set line_sh [ hm_getmark lines 1 ];
set ile_li [ llength $line_sh ]
if { ! [ Null line_list ] } {
for {set i 0} {$i <$ile_li} {incr i} {
set liID [ lindex $line_sh $i ] ;
eval *createmark lines 1 $liID
*createbestcirclecenternode lines 1 0 1 0;
*clearmark lines 1
}
};
puts "Enter: tcl is harder than you think"
Open command.tcl file you will see the script