Skip to content

2022 UnitType Removal #1362

@abbaad

Description

@abbaad

Describe the bug
The UnitType property of the Definition class was deprecated in version 2021 of the Revit API and was removed in version 2022. Additionally, the ParameterType Property was deprecated in version 2022 (presumably it will be removed in version 2023).

This affects some pyRevit commands, such as Create schedule from CSV, which complains about UnitType in 2022, but not in 2021 or earlier.

To Reproduce
Steps to reproduce the behavior:

  1. Open Revit 2022 with pyRevit extensions loaded
  2. Go to Schedules
  3. Click on Create schedule from CSV
  4. Click through dialogs
  5. See error

Expected behavior
Work exactly like it does in 2021.

Desktop:

  • OS: Windows 10 x64
  • Revit Version: 2022
  • pyRevit Version: 4.8.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    API ChangeRevit API change that breaks pyRevit [class->Upgraded #{number}: {title}]ToolsIssues related to pyRevit commands [subsystem]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions