DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
328 stars 184 forks source link

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

Closed AdrianaStanica closed 2 months ago

AdrianaStanica commented 2 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