/* Make sure User Function is available. */
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
value.item_id=MY_LAY;
value.item_attr=UF_STYLER_VALUE;
if(value.value.integer)
{
ir6=uc1616(cp1,[$ia2,0,rr4)]
UF_UI_open_listing_window();
sprintf(buffer,"point(x1,y1,z1) is: %f, %f, %f\n", rr4[0],rr4[1],rr4[2]);
UF_UI_write_listing_window(buffer);
}
else
{
ir6=uc1616(cp1,[$ia2,0,rr5)]
UF_UI_open_listing_window();
sprintf(buffer,"point(x2,y2,z2) is: %f, %f, %f\n", rr5[0],rr5[1],rr5[2]);
UF_UI_write_listing_window(buffer);
}