Reputation: 163
I need to create a filter in a Revit manner.
ParameterFilterUtilities.GetFilterableParametersInCommon
get common set of parameters for target categories. GetFilterableParametersInCommon
returns a set of ids. There are 3 types are expected in returning: BuiltinParameter
with Id < 0, and SharedElementParameter
and ParameterElement
with Id > 0 (doc.GetElement(Id)
).ParameterElementFilter
creation is FilterNumericRuleEvaluator
for numeric type or FilterStringRuleEvaluator
for string type.Evaluator
according the StorageType. For BuiltinParameter
doc.get_TypeOfStorage(<BuiltinParameter>)
works perfectly, but I cannot get StorageType
for ParameterElement
only ParameterType
.So is there any way to get to know which Evaluator
type should be used for ParameterElement
?
Upvotes: 1
Views: 977
Reputation: 8339
Can't see the StorageType
on the ParameterElement
in RevitLookup?
Upvotes: 1