![corners 1.PNG corners 1.PNG](https://community.jmp.com/t5/image/serverpage/image-id/6019iEDD7D7BB75E7900B/image-dimensions/254x233?v=v2)
![corners 2.PNG corners 2.PNG](https://community.jmp.com/t5/image/serverpage/image-id/6020iC978274BB30DB044/image-dimensions/250x235?v=v2)
The new data you provided do not meet the assumptions that I had made in creating the original scripts I provided. I had assumed a square, with the X and Y coordinates being definable by examining the extreme values and for center points, the true center(mean). You had also indicated the corners would be in a clockwise order, (B,C,D,E). As can be seen in the graphs above, that also is no longer true. Therefore, the only solution I can see is to hardcode the values for the corners.
Names Default To Here( 1 );
dt = Current Data Table();
If(
Col Number( dt:x1 ) == 5,
dt << New Column( "Corners", Character, values( {"B", "C", "A", "D", "E"} ) ) //
, // Else
Col Number( dt:x1 ) == 6,
dt << New Column( "Corners",
Character,
values( {"B", "C", "A-Bottom", "A-Top", "D", "E"} )
)
);
Jim