Here is a short introduction Video into Visibility Graphics Overrides in Rhino.Inside.Revit along with an simple example.
Visibility Override Hierarchy.
Filters-01.gh (17.9 KB)
Let us know if you have any questions!
Here is a short introduction Video into Visibility Graphics Overrides in Rhino.Inside.Revit along with an simple example.
Visibility Override Hierarchy.
Filters-01.gh (17.9 KB)
Let us know if you have any questions!
This is awesome! Great job guys​:heart_eyes:
Hello, I have question: This filter create have turn off visibility, that is very usefully. However I see the previous filter in view was delete. Hoe can keep the previous filter ?
Thank you Japhy, Could you please guide how to get sup element with Rhino inside component ? ( EX: Get the element pile in family pile cap contain pile )
Hi KHANH,
I’ll need more information to help. If this is unrelated to Graphics Overrides can you start a new thread? Thanks
Is there a way to clear overrides via a toggle?
Right now, it seems the only way to clear overrides on an element is to disconnect inputs from the Graphics Overrides node. However, I want to make it so that I can actively toggle on/off overrides, rather than having to disconnect nodes. I tried using a stream gate, but it seams that the Graphic Overrides node still considers the gate an input, even when the gate is off.
with no inputs a Graphics Overrides are the default, so something like this would toggle between Default and Overrides per your Boolean.
@Japhy Ah, duh. That makes sense. Thank you!
I’m still running into a bit of an issue (and maybe a bug?).
If I have multiple inputs to a graphic overrides node and one of them is null (see bottom of the image), the output from the graphic overrides node is null. I tried getting around this by having a separate node for each input, and then combining the data and cleaning the tree. However, when I do that, each override seems to be a separate item, so when I feed it into the Element Graphics Override node, the last item is the only one that’s applied. For example, in the below image the line weight is the only thing being overridden in Revit.
I also noticed that the output from the graphic override node is not separate entries on the data tree, but seems to be a different data structure.
How do I make it so that multiple independent inputs for graphics overrides can be applied to the same element and be toggled individually?
@Japhy Sorry, I keep forgetting to @ you
its an unusual workflow, I guess you could chain the Element overrides or test for a null and replace.
Can I put in a feature request/update?
Make the graphics node so that a null input into one of the overrides defaults to no override on that input.
and/or
Make the Graphic Overrides component ignore any null inputs, that way the output is not null as long as there is at least one valid input.
I can put in a feature request but I don’t think this will be possible with all the data types. They are looking for particular Revit API values. An empty Pattern is Null but has a type in Revit.
Huh. Interesting.
I did end up solving the problem by doing a series stream filters, similar to what you suggested before. Works great although I’m not sure how efficient it is.
Hello @Japhy , thank you for this amazing update. My question is - does this work with linked elements in view , by using graphical elements node and select multiple linked graphical elements?
The filter will apply to Linked View Elements.
You can select via Graphical Elements component but any parameter changes would need to happen in the Linked file.
Hi @Japhy ,
Great work, I am enjoying a lot working with GH to control views and filters.
I have a couple of questions:
I aim to make a system with the Idea of "hide all the elements with empty value in the parameter “X” ".
We use this kind of firlter a lot, so we can target which elements are missing value in some parameters.
In revit we have the option:
In GH i can´t find something similar.
How would you do it?
I came up with this Idea:
(C) i did this toogle True/false expecting the rule to be inverted so its not empty value that will be hidden but the elements that have value are hidden. → It doesn´t work, True and False give me the same result. I thought have the rule “If parameter “X” has an empty value” and then invert the filter, but doesn´t work.
I came up with this:
with a “steam filter” be able to chose if “equals”/“not equals” rule. It works, but maybe there is a better way?
So how could I do: “if the paramater has any avule” as a rule?
Hi Adria,
There are a couple options offered as a workaround by Autodesk for this condition.
Hi Paphy,
Thanks, so more or less what I made.
However, this as I tried to expose, just works when it is a text parameter, or at least not an integer one, If the parameter requires a number, then the grasshopper rule comand, doesn´t work as Autodeks workaround suggest.
On the second topic:
I wanted to invert the filter with a “true/false” in the parameter filter. When I apply that filter to create a “rule-based filter”, the “true/false” doesn´t make a difference, but I then connect it to a “Querry elements” and the “true/false” invert my selection from elements with that parameter to elements without value there.
Am I applying wrong the “invert filter” option when trying to create the “rule-based” filter, the “rule-based” can´t understand that “inversion”, or maybe something isn´t working right?
thanks.