Skip to content

Dynamo 2.0 nodes cannot unpack dictionaries! #9474

Open
@dimven

Description

Dynamo version

2.0.2

Operating system

Windows 10

What did you do?

Tried to work on a list of dictionaries

What did you expect to see?

a result

What did you see instead?

The core nodes provided no error, just null value for each dict. The core D4R nodes actually provided a useful error:

Warning: Element.Name expects argument type(s) (Revit.Elements.Element), but was called with (DesignScript.Builtin.Dictionary).

image

I would have expected that we would automatically get the values of the dictionary items as an unsorted list and that the design script VM would map our function to each value item in that unsorted list. Instead we get the above. If we add a Dictionary.Values node, we can fix the result but that seems counter-intuitive to the way things just worked before.

Metadata

Assignees

No one assigned

    Labels

    2.xIssues related to 2.x versions of Dynamo.Improvementneeds investigationNeeds looked into further.priorityRelated to a release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions