I am bringing data from SQL Server into ArcMap with ArcObjects as a Query Layer. If I do this manually, a 'Geographic Coordinate System Transformations' UI pops up. I would like the same thing to happen when I use my code OR to be able to set the transformation automatically. But I'm having trouble finding how to handle on the fly transformations with ArcObjects. Can someone point me in the right direction?
Edit: This is a Python Addin that I am developing. I'm using comtypes to get at the ArcObjects. Please tell me if I'm wrong but it seems that the simplest way to set the transformations is with arcpy.mapping.DataFrame.geographicTransformations. Then I can append to the list the transformations I want the dataframe to use, depending on which Query Layers are being asked for.
I would still like to have the same dialog that is used when manually setting the DataFrame's Geographic Transformations pop up after the data is brought into the map so the user is aware of what transformations are being used. Does someone know if this is possible?
Edit2: Maybe if I could trigger the event that warns the user that a featureclass with a differing projection than the dataframe has been added to the map. Where would I go to start looking into this?