Georgi Koemdzhiev Posted October 25, 2019 Share Posted October 25, 2019 Hello, I am trying to figure out how to remove a FilteringScheme from the API. The code below adds one but I am having trouble how to delete one after I add it. Does anyone have any suggestions // Add a new data filtering selection. DataFilteringSelection dataFilteringSelection = document.Data.Filterings.Add("Filtering Scheme1"); // A filtering scheme has now been implicitly added for the new data filtering selection. FilteringScheme myFilteringScheme = document.FilteringSchemes[dataFilteringSelection]; // Let the active page use the new filtering scheme. document.ActivePageReference.FilterPanel.FilteringSchemeReference = myFilteringScheme; Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted October 25, 2019 Share Posted October 25, 2019 Below is a python script reference but the process should be the same for i in Document.FilteringSchemes: i.FilteringSelectionReference.Name=="name" Document.Data.Filterings.Remove(i.FilteringSelectionReference ) Link to comment Share on other sites More sharing options...
Georgi Koemdzhiev Posted October 28, 2019 Author Share Posted October 28, 2019 Thank you Shandilya, that worked like a charm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now