Filter Selection Criteria "Empty" or "NonEmpty"?

Filter Selection Criteria "Empty" or "NonEmpty"?

DavidThirlwell
Contributor Contributor
9,794 Views
9 Replies
Message 1 of 10

Filter Selection Criteria "Empty" or "NonEmpty"?

DavidThirlwell
Contributor
Contributor

Is there any way to Filter in Revit (e.g. Schedule Filter or View Filter) based upon Empty or Non Empty parameter fields? This is critical for non-numeric parameters.

 

Perhaps there's a special operator that works since * and ? don't...  

 

Without an Empty/NonEmpty criteria, all other Criteria Arguements require at least one character to filter on, but it just makes sense that someone would want to filter either all elements that have or don't have empty parameters.

 

For Example: I have a custom PSI parameter for all structural concrete elements and I want to be able to turn off all elements that have a value entered. Since this is a Number parameter, I am able to setup Filters based-upon >, <, = criteria to show hide what I need (e.g. PSI Is Greater Than 1).  But, I also use Comment parameters (i.e. Text parameters) that are structured and I have not found a way to Filter based-upon whether those parameter fields are empty or not.

 

All comments/suggestions are welcome!  I've attached images of the available Criteria for Numerical fields and Text fields.

 

 

 

 

If you find someone's post helpful, give it Kudos. If it answers your question, mark it as an answer.
0 Likes
Accepted solutions (1)
9,795 Views
9 Replies
Replies (9)
Message 2 of 10

L.Maas
Mentor
Mentor
Accepted solution

Often what will work is to say greater than and leave the value blank

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 10

DavidThirlwell
Contributor
Contributor
Thanks! It turned-out I needed the less than with blank value, but either one works. Thank you Enllnt!
If you find someone's post helpful, give it Kudos. If it answers your question, mark it as an answer.
Message 4 of 10

c.barribaud
Enthusiast
Enthusiast

With revit 2019, I can't leave the label ampty

 

Capture.PNG

 

Do you have an idea ?

0 Likes
Message 5 of 10

ennujozlagam
Mentor
Mentor

yes you can just leave the filter by: set to none. thanks

 

none.JPG





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 6 of 10

c.barribaud
Enthusiast
Enthusiast

Hello,

 

I want to filter by Assembly Mass with blank value (by defaut in REVIT) so I can use none.

0 Likes
Message 7 of 10

ennujozlagam
Mentor
Mentor

my understanding you want to leave it empty? if yes set to none. thanks





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 8 of 10

c.barribaud
Enthusiast
Enthusiast

By defaut REVIT don't add a value in parameter and I want to filtre parameter "Assembly Mass" where ther is no value.

 

If I put equal to 0, it doesn't work. How to do ?

0 Likes
Message 9 of 10

Anonymous
Not applicable

It works for me here. I can leave the value empty and it works for finding empties.

 

Empty.jpg

0 Likes
Message 10 of 10

paul.t.macknight
Advocate
Advocate

I know this is a little past due, but this is an issue with the way Revit handles comparing numeric values (e.g. mass, volume, area, etc.), which I can't really blame them for. How do you compare 0 and an empty string ""? What do you set "" to? Null? 0? How do you know you're capturing the intent of the user?

 

You could use the same argument for when these parameters are, somehow, blank (e.g. when a room is "not placed"), except they know that these values are, essentially, 0, and that a user will want to filter based on whether these odd values exist, so they will have the value of either 0 or -1. If one of these parameter values is truly blank, then there is likely something else wrong, either with the file or the family, as Revit does not like leaving numeric values as truly blank.

 

So, these parameters require a value, but you should get the desired results by setting in the filters:

"<parameter name>"  "<is less than/is less than or equal to>"  "0". This works 

 

If that is not the case, then there is likely something else wrong. If you still want help, let me know what family you're using (as I don't recall off the top of my head what contains an "assembly mass" parameter), and I can see what needs to be done.

0 Likes