pyrevitlabs / pyRevit

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

Hard crash Print Sheets tool #1198

Closed olalancette closed 3 years ago

olalancette commented 3 years ago

Describe the bug While loading a sheet index in the "Print Sheets" tool, Revis crashes. The tool freezes while loading the second sheet for a couple of seconds, see screenshot below. image

To reproduces Only in Revit 2018. Fixed in later versions of Revit.

Possible cause : The presence of a revision on the sheet seems to be the culprit.

To Reproduce Steps to reproduce the behavior:

  1. In Revit 2018 (tested on french and english), with an empty template, set a revision on two sheets : A101 and A102.
  2. Have an empty sheet list schedule named "A" (use Sheet name greater than "B" to filter out all the sheets).
  3. Have a full sheet list schedule named "B" (no filter).
  4. Open Print Sheets tool.
  5. Switch from Sheet List "A" to Sheet List "B"
  6. Get an error

If using a blank template it gives you this window, instead of a full Revit Crash: image image

Expected behavior Sheet list to load without a crash or error.

Desktop (please complete the following information):

eirannejad commented 3 years ago

Fixed and will be published with next release

ALT+CLICK on the print tool and replace the two files with the files shared here to fix this issue in place Updated script.zip

olalancette commented 3 years ago

@eirannejad Thanks a lot ! It works.