Add Multiple Filter to ProSDK SaveItemDialog()

117
4
08-23-2018 08:01 AM
Highlighted
New Contributor III

Hi,

How to add multiple filter to the SaveItemDialog()? I wanted to give an option to save Shapefiles or Featurclass. I am looking for something like IGxObjectFilterCollection.AddFilter method.

Right now in Pro SDK, I am using the below code but could not find an option to add multiple Filters.

SaveItemDialog pathOutputLayer = new SaveItemDialog();
pathOutputLayer.Filter = ItemFilters.shapefiles;
//pathOutputLayer.Filter = ItemFilters.featureClasses_all;

Thanks

Tags (2)
Reply
0 Kudos
4 Replies
Highlighted
Esri Regular Contributor

Hi Sreehari

The only filters you can use are the predefined ItemFilers collection available in the Pro API. You can find the available collection here: http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8983.html 

Currently there is no filter that will allow you to save to shapefiles or feature class.

Thanks

Uma Harano

Reply
0 Kudos
Highlighted
New Contributor III

Hi Uma,

Thanks for the response. The API reference link is broken.

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Sorry about that. The link is now fixed.

Reply
0 Kudos
Highlighted
New Contributor III

I found "ItemFilters.featureClasses_all" as close alternative.

Thanks!!

Reply
0 Kudos