AnsweredAssumed Answered

how to use pythonaddin opendialog

Question asked by bdridaho on Jan 30, 2016
Latest reply on Jan 30, 2016 by Dan_Patterson

Is it possible to use the OpenDialog in pythonaddins module to retrieve/open a file like a CSV file? The example given in the guides and online help show an example for filtering on "*.txt"; however, this simply doesn't work as only certain file types seem to be shown no matter what the filter argument is checking for (and txt files don't seem to be one of those file types, neither is "csv")




An issue that was preventing the dialog from functioning for me was that I was using the C:\ root directory as the starting location. Interestingly, the OpenDialog (and ArcCatalog) does not show TXT or CSV files in the c:\ root. However, everything operates OK when using a subfolder....