DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
340 stars 188 forks source link

Convert value data type to parameter value data type when creating a new FilterRule #3061

Closed AdrianaStanica closed 7 months ago

AdrianaStanica commented 7 months ago

Purpose

When a FilterRule is created with FilterRule.ByRuleType node, we should make sure the value and parameter value data types are the same. Otherwise, when the generated FilterRule is processed in Revit, a blind pointer cast from parameter value data type to value data type could end up breaking Revit.

REVIT-219696

Declarations

Check these if you believe they are true

Reviewers

@Mikhinja