DynamoDS / DynamoRevit

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

Handle case when GlobalParameter.SetValue node receives a value of type long #2987

Closed AdrianaStanica closed 8 months ago

AdrianaStanica commented 8 months ago

Purpose

To fix a bug reported in REVIT-212479 where the user can't set the value 30.0 to the global parameter "Wall length" using the script GlobalParameter_SetValue.dyn. The value that is assigned to the parameter is transmitted by Dynamo as a value of type long (30.0 is treated as a long whereas 30.1 is treated as a double) and this data type isn't handled in the function setValue().

REVIT-212479

Declarations

Check these if you believe they are true

Reviewers

@Mikhinja

FYIs