Hi guys,
Is it possible to use Calculated Parameters as a Filter, when defining the Filter based on which I will Override Graphics in a View.
I see that all parameters of elements are available for the Filter field, but when creating a Label, or when creating Schedule fields, it is possible to use Calculated Values as well. When defining Filters I do not see this option. Is it possible or am I overlooking something?
Is it possible to do it using Project Parameters? Shared Parameters? Global Parameters?
Thank you
Gelöst! Gehe zur Lösung
Gelöst von armadillo1970. Gehe zur Lösung
Can you share something that shows what it is that you are trying to achieve?
you can make it as a shared parameter created inside the family it self.
any parameter done inside the family can have a calculation formula which is exactly similar to calculated value.
Mostafa Elashmawy
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Thank you for the answers.
I would like something that would be a solution that works for any element, for example Walls. This is why I was asking about Project/Shared/Global Parameters, because I know Family Parameters are available for that Family only.
So, what I am talking about is something that achieves the same as the Calculated Parameter function when creating Schedule fields.
Lets say I want to create a new parameter called Wall Width Class. This would be its formula:
if(Width < 150 mm, "Thin", if(Width > 300 mm, "Thick", "Medium"))
For Walls below 150 mm thickness, its value is "Thin"
For Walls between 150 and 300 mm thickness, its value is "Medium"
For Walls above 300 mm thickness, its value is "Thick"
This works in Schedules as a new Calculated Parameter for a Schedule field.
I would like to use this Wall Width Class parameter in a Rule-based Filter so I could override the graphics of these 3 classes of Walls using different colors.
To be able to do that I need a parameter that can be defined by a Formula or can be a Calculated Parameter.
Break the formula into several filters. If you need 3 rules then create 3 filters.
Create a filter for walls. Filter for the parameter that you are talking about. You will filter for
Type 1 equals to Thin
Type 2 equals to Medium
Type 3 equals to Thick
Thank you, yes, I am aware that I will need to create 3 different Filters for this.
I would like it to work like this (the 3 cases):
If Type equals "Thin"
If Type equals "Medium"
If Type equals "Thick"
This would be 3 Filters as mentioned by ToanDN.
So it would have to compare the same parameter to 3 different Text values.
But the parameter that is compared to these text values would have to be calculated for each individual Wall separately.
I think this could probably be done using Dynamo, but I am curious if it can be done with Calculated Values in the Filters Dialog.
@armadillo1970 Share a file. So far all we are doing is guessing.
In the meantime I have also received word from another Revit user and he confirmed my own findings that it is not possible to use a Shared Parameter defined by a Formula in a Rule-based View Filter.
It seems Dynamo is the only to achieve this.
Thank you all for your helpful posts.
I just want the Type value to be automatically calculated based on the thickness of the Wall.
If I was doing a Formula in a Family it would look like this:
if(Width < 150 mm, "Thin", if(Width > 300 mm, "Thick", "Medium"))
But then I would have to use that Formula for every Type of every object Category I wish to use it with.
This is why I am trying to come up with a solution that would let me define a formula once, and it would apply to all types and instances of multiple categories (if needed).
I too have wanted to do this for various reasons. Basically I would like to add a formula to a view filter rule that reads multiple parameters within "IF" condition statements. As you stated we can do this in schedules but that doesn't provide the ideal method of seeing these issues from a floor plan view.
For one of my examples, I would like to visually change the colors of electrical receptacles on a floor plan that do not equal the same elevation of their default elevation values and also do not equal a coordinated elevation that I specified.
For context my firm identifies coordinated elevations on the plans with tags that read something like +60" next to the duplex symbol. Currently Revit has the ability to read the "Elevation from Level" parameter but this can be problematic because walls and/or other hosts of these devices can unintentionally move the device to higher or lower elevations. This can be hard to realize and correct. If we continue to use the "Elevation from Level" parameter to populate our tag family, we can loose track of what the specified coordinated elevation was if the host moves the devices automatically. To try to fix these issues we try to remember, and/or hopefully find old meeting minutes/drawing to show us what the coordinated elevation was before the host automatically move our device to the wrong elevation.
To better help with this, I created shared, length, instance, project parameter called "Coordinated Elevation" that populates the tag shown on the plans next to our duplex symbols. This would not be tied to the modeled elevation but I can crosscheck it with the device's modeled elevation using a calculated parameter in a schedule. So I created a schedule that uses a calculated parameter called "Possible Elevation Issue" to compare my "Coordinated Elevation" values with Revit's "Elevation from Level" values. This calculated parameter says if the "Coordinated Elevation" parameter has the default value of 0' and its "Elevation from Level" parameter is equal to standard receptacle height of 18", then this devices "Possible Elevation Issue" value is "Likely Okay". Then inversely, if the "Elevation from Level" is not equal to the "Coordinated Elevation" nor the standard default elevation of 18", then the schedule's conditional formats the cell red and describes the "Possible Elevation Issue" value as "Potential Problem". I can then use this to find my issues on the plans, but it can be tedious with soo many devices scattered amongst many sheets/views.
Thus we Revit users could really use a visual method of identifying these issues from a floor plan perspective. It would be really nice if a view filter had the ability to create more complicated rules such as what the schedules can do with "Calculated parameters".
So this is definitely on the Revit wish list for several people and myself. I guess I am glad Dynamo is a possible option to solve this, but I still hope Autodesk just address's this issue for us all. Don't worry, I am not holding my breath!
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.