Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

how to find the attributes of all filters in the project

a_qwaiderT68R3
Explorer

how to find the attributes of all filters in the project

a_qwaiderT68R3
Explorer
Explorer

hello Forum, 

 

I'm working on several projects for the same client and we've got an update on how to color the elements. to do so, I need to replace one condition, which is based on one parameter in the filters with multiple conditions based on multiple parameters. now I need to know which filters use the parameter I want to replace. in my old office there was a guy who made me a tool to list all filters with their conditions and I could export the result to a text file to use the find tool and mark those filters. 

 

now I'm not API Expert, but I'm very good with Dynamo and I wanted to ask, if there is a trick to find the start point on how to solve this issue. 

 

PS: I bear witness, I know how to edit one filetr and I know what a filter is and I know how do filters override each others in a certain view! 

 

I appreciate any ideas! 

 

thanks in advance and schöne Grüße aus Deutschland! 

 

A.Q.

0 Likes
Reply
143 Views
1 Reply
Reply (1)

TripleM-Dev.net
Advisor
Advisor

Hi @a_qwaiderT68R3,

 

Depending on the number of filters in the project, just start the Filters dialog and loop the filters with the down arrow.

A list of the applied values / conditions is shown. Even for 100 filters this is quick to id the ones that need changing.

 

I assume it will only be one filter??, else the order of viewfilters applied will ignore some depending the overrides.

 

The number of views wouldn't matter, unless the override of those filters need changing. (Which view has which filter with what override)

Then I hope viewtemplates are used. (changing the overrides can also be done with the API btw)

 

Finding the Filter with a certain parameter (or print-out of all configs) can be done in C# api, so I guess also in Dynamo with the correct nodes. Thing is with the filters now, they can have nested filters (x-times) so a recursive call is needed to get all.

 

See the Dynamo forum, maybe there's already a node that retrieves them?

0 Likes