Select to view content in your preferred language

Add Multiple Filter to ProSDK SaveItemDialog()

836
4
08-23-2018 08:01 AM
sreeharikottoormadam
Occasional Contributor

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)
0 Kudos
4 Replies
UmaHarano
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

0 Kudos
sreeharikottoormadam
Occasional Contributor

Hi Uma,

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

0 Kudos
UmaHarano
Esri Regular Contributor

Sorry about that. The link is now fixed.

0 Kudos
sreeharikottoormadam
Occasional Contributor

I found "ItemFilters.featureClasses_all" as close alternative.

Thanks!!

0 Kudos