The delete command is not efficient. It searches in supplement 2 from the beginning to the end for the frame name. The only way to speed up is to keep supplement 2 small/empty. Remove any redundant information from supplement 2.
APT retrieves the information from HNSKY using the GET_TARGET command. This is the position of the last object found/clicked or exported on in HNSKY. APT doesn't use the GET_POS or SET_POS commands for the center of the HNSKY map.
So currently the only way to get a mosaic frame position in APT is to place the cursor in the middle of the mosaic and use the mouse right button and select "Export position to server"
So the current HNSKY frames don't have a clickable center nor does the frame label report the center position. Probably the best solution would be to have rectangle objects with a clickable center similar as the current ovals for galaxies. Then a rectangle frame would be a single object in the supplement. Now the rectangle frame are made out of four individual lines. The clickable center of that single object can be searched and therefore exported to APT.
Before I start any new ideas, can you describe how your work flow will be. How will your program operate/work with HNSKY and APT?
p.s. I use the following program to test the server link of HNSKY. Maybe usefull for testing.
Clear skies, Han