Skip to content

DynamoRevit 2.x Categories Dropdown Produces Inconsistent Results Between Revit versions #2281

@dimven

Description

@dimven

If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.

Dynamo version

2.x

Revit version

Any two recent versions of Revit, e.g. 2018 and 2019

Operating system

Windows 10

What did you do?

Steps to reproduce:

  • start a 2.0 graph in Revit 2018
  • Place a Categories node and choose Walls from the dropdown
  • save the graph
  • open Revit 2019
  • load the graph
  • the Categories node now points to something totally differeny

What did you expect to see?

The exact same category selection between versions

What did you see instead?

Something else

This happens because the dropdown is serialized as just and index integer in the JSON, where as built-in categories are not static between Revit versions.

I imagine one way to solve this is to store the current selection as both a string and an index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions