I wrote a toolbox script that allows a user to append points from a text file to a feature class. The user picks a text file and a feature class from a database he is connected to, the script then modifies the text file to add some additional parameters, runs
arcpy.MakeXYEventLayer_management to create a layer and then
arcpy.Append_management to add the data to the selected feature class.
The script works, but I can't control to which version of the database the data is added. It seems to depend on which version of the database the user might be currently connected or was connected the last time the database was used.
Is there a way to display the version of the database that is going to be used or an easy way to allow the user to choose the version?
I could list all versions of the database the user is connected to using
arcpy.da.ListVersions and populate another input box with all versions after the feature class has been selected, but what would I have to do to append to the selected version?