Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

ArcGIS 10.1 python add-in usage of arcpy.GetParameterAsText

$
0
0
Hello to everyone,

is it possible to use arcpy.GetParameterAsText() for User Input e.g. for a table or a name of a featureclass?

Code:

def onClick(self):
        # Script arguments
        import_file = arcpy.GetParameterAsText(0)

        tab_gdb = arcpy.GetParameterAsText(1)

        tab_mxd = arcpy.GetParameterAsText(2)

        # Local variables:
        Ausgabetabelle = import_file
        Geodatenbank = env.workspace

        # Process: Tabelle in Tabelle
        arcpy.TableToTable_conversion(import_file, Geodatenbank, tab_gdb, "", "", "")

        # Process: Tabellensicht erstellen
        arcpy.MakeTableView_management(Ausgabetabelle, tab_mxd, "", "", "")
        pass

This is my code I already wrote. But it doesn't open an window for value input.

Thanks alot,

krank42

Viewing all articles
Browse latest Browse all 2485

Trending Articles