Python - Get View Filter Rules - ParameterFilterElement.GetRules

Hi, I’m trying to get the filters along with filter rule properties for the current view. (eventually spitting them out to Excel, then importing them again to re-create the filters) I have started with the Bakery Package “List Detailed View…” and trying to add in the actual rules for each filter.

Here is my modified Python. Results. I’m sure I’m missing something basic… I tried a few different lines of codes but I’m not getting the results.

Hi Matt,

Similar topic is discussed here http://dynamobim.org/forums/topic/create-and-add-view-filter-parameterfilterelement/

Yea I read over that already among 8 other sites. I have no problems creating filters, it’s getting the list and the rules back.

 

2 Likes

Hi Matt,

Harry Mattison just did a very thorough review of filter rules. Have a look, hopefully you’ll find everything that you need:

1 Like