Esri / data-assistant

ArcGIS Pro Add-in that assists in emergency management, local government and state government data aggregation workflows.
Apache License 2.0
22 stars 8 forks source link

Configure Data Mapper - open Pro dialog versus file explorer #193

Open clareprice opened 7 years ago

clareprice commented 7 years ago

@MikeMillerGIS @previnWong @JRosenfeldIntern

To stay consistent with the ArcGIS Pro experience and the other gp based tools in data assistant, when adding and browsing for files the ArcGIS Pro project dialog should open versus file explorer. Example screenshots below.

New Source-Target Configuration File dialog for adding: C:\Users\clar7284\Documents\ArcGIS\Projects\DataAssistantDoc\SourceTarget.xml image

Configure Data Mapping file explorer: image

JRosenfeldIntern commented 7 years ago

Not sure if that dialog box is available in the SDK for .NET/C#. The closest I could find was ArcGIS.Desktop.Framework.Dialogs.BrowseForFolder but that seems to open up a windows dialog box, not an ArcGIS Pro one.

@chris-fox or @ChrisBuscaglia have one of you ever worked with something like this?

EDIT: Scratch that, I found it. If you're curious it is ArcGIS.Desktop.Catalog.OpenItemDialog

JRosenfeldIntern commented 7 years ago

@clareprice I looked into this again today. Turns out the default Windows dialog box is the expected behavior for a GPTool searching for xml input. The reason being is the ArcGIS dialog box does not accept filtering for .xml files. This behavior can be seen in built in tools such as "Import XML Workspace Document".