arn9000
arn9000

Reputation: 163

Revit API. StorageType of ParameterElement

I need to create a filter in a Revit manner. enter image description here

  1. With 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)).
  2. One of parameters for ParameterElementFilter creation is FilterNumericRuleEvaluator for numeric type or FilterStringRuleEvaluator for string type.
  3. Create proper 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

Answers (1)

Jeremy Tammik
Jeremy Tammik

Reputation: 8339

Can't see the StorageType on the ParameterElement in RevitLookup?

Upvotes: 1

Related Questions