pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.33k stars 338 forks source link

Make Pattern Tool Not working in Revit 2022 #1339

Closed ryanharmison closed 3 years ago

ryanharmison commented 3 years ago

Describe the bug Make a pattern doesn't run. When button is clicked this window pops up. Reinstall of both revit and pyrevit didn't fix. Updates to both didn't fix

To Reproduce Steps to reproduce the behavior:

  1. Selceted Pattern to create
  2. Go to 'pyRevit tab'
  3. Click on 'Make Pattern'
  4. See error

Expected behavior Make Pattern dialog opens to create pattern

Desktop (please complete the following information):

Make Pattern Report

alexdaversa commented 3 years ago

DisplayUnitType was deprecated in I think 2021 updates and definitely 2022. There is a new class in the API but I have to dig into it before I propose a pull request to identify. The Make Pattern command should still work in 2019 and 2020 if you have an immediate need to generate a pattern and can upgrade the model/copy the pattern in.

alexdaversa commented 3 years ago

This was actually fixed in the latest release (issue #1224). Your best course of action here is probably to update your pyRevit to 4.8.8 or if you can't do that, to edit the script to match the edits in commit 870f9dee0ca71be902cd1b11e3c7e172ac8dcf18