I'm doing a lot with view filters at the moment, and it is very frustrating.
If I'm filtering an integer parameter, I need to use two filters for the '0' (zero) value.
1. where integer = 0
2. where parameter has no value at all (parameter.HasValue = false)
1 is easy, two is not.
Similar things apply for String values
1. where string= "" (empty string - can be when a person has deleted the value)
2. where parameter has no value at all (parameter.HasValue = false)
Similar things apply for Double values
1. where double=0.0
2. where parameter has no value at all (parameter.HasValue = false)
Yes I know why this happens, no I don't care. Yes there are some workarounds, but the workarounds do not work with multiple Filter Rules daisy-chained together.
The issues persist in View Schedule filters.
The issues persist in the Revit API when filtering for parameter values (though this is easily dealt with).
I suggest an option such as 'Parameter has null or default value' or similar.
Additionally, it would be useful to choose the operator when applying multiple filters.
e.g. AND, OR, AND NOT, etc
It would also be helpful to be able to use other Filter Rules such as 'Parameter does not Exist', 'is not greater than', 'is not less than' etc. At present it is not possible to adequately link multiple Filter Rules to achieve all possible goals.
It would obviously make sense if there was a combined underlying logic to view filters and schedule filters. Named Filters?
The filters need to work adequately with linked models (without VG overrides).
Cheers,
-Matt