The AmxmExportInfo object provides access to export settings used by the AMXM exporter. This object contains a dictionary of tables and matching queries to export.
The object is used by the ExportAmxm function. Once created, the queries dictionary may be populated using the tables to export as keys and SQL where clauses as values.
(Read and Write)
A dictionary mapping table names to SQL queries. Any table that is a dictionary key will be exported. If the query associated with the table is empty, the entire table will be exported. If no entries are added to the queries dictionary, the entire geodatabase will be exported.
This sample creates an AmxmExportInfo object and accesses its properties.
# Name: AmxmExportInfo_example.py # Description: Creates an AMXM export settings object # Author: Esri # Date: November 2016 # Import arcpyproduction and aviation modules import arcpy import arcpyproduction import datetime # Check out Aviation license arcpy.CheckOutExtension("Aeronautical") # Create AmxmExportInfo object export_settings = arcpyproduction.aviation.AmxmExportInfo() # Set and access export_settings export_settings.queries["TAXIWAYELEMENT"] = "OPERATIONALSTATUSCODE = 'ACTIVE'" export_settings.queries["RUNWAYELEMENT"] = "IDARPT = 'KHPN'" export_settings.queries["STRUCTUREPOLYGON"] = "" # empty query will export everything # print queries property print "Queries: " + export_settings.queries # Check in Aviation license arcpy.CheckInExtension("Aeronautical")