Hi, i have a view that has so many filters to control pipe colors. many pipe systems are sharing almost same color, and it is very troublesome to select the pipes to figure the system and then figure which filter controlling it. is there a way i can get the name of the filter controlling a specific pipe system (or any other elements) using dynamo?
This maybe?
it talks about creating filter set, while i want to select the element and dynamo would tell me what filter is controlling it
There’s nothing that ties the filtered element back to the filter. It’s just a blanket override. You would have to reproduce the filter logic to determine which elements would be overridden.
What exactly are you wanting to do with this information? It sounds like you want to identify certain information based on the controlling filter. Why not just identify that information directly from the element?
because of the workflow, we have a hell amount of filters that come with each template and many with similar names and colors. so, it would’ve been much easier for me if I could create a dynamo script that allow me to select for example a pipe and it would return the name of the filter that is controlling its color. because I have like 7 systems that has the same color but different filters!!! just to save me time so i can figure which filter i should change fast.
So is the issue just that the filters are using similar colors and therefore it’s hard to determine the system just by looking at it? Why not just change the colors in the filters then? I’m having trouble understanding what the actual issue is that you’re trying to fix if the culprit is the filter and not the system. You could even write a script to change all the filter colors to new unique colors.
figuring which filter to turn off or on or change is the very issue! I’m wasting so much time turning filters on or off to figure which is the one controlling witch element! that’s where i had the idea if i could have a script that give me the name of the filter controlling that element directly
But what’s the end goal? Do you not want those elements to be filtered? Do they just need to be different colors? It feels like you’re trying to automate figuring out your issue rather than just defining what you want and automating that.
the end goal is to fix how these elements look by figuring what exact filter is causing them not to show correctly. there are so many filters that their name doesn’t correlate with either the element or what the filter does. And right now, I’m doing the gruesome task of turning on/off filters to see which elements they control, then fix them after. which is taking time. we use standard filters so it’s not optional to create new ones.
So the elements don’t match the standard? No need to figure out where the standard is broken then. Just apply the standard logic to the filters.
Hi @Eddy.NiyaziTYJ7L probably something hre could help
thanks guys, i will try both suggestions. but what are the packages of the second method @sovitek ?
for filter just use ootb…view.filters and the other is from openmep and can be download from Release 2.0.24.2811556 · chuongmep/OpenMEP · GitHub