From bf16d935e1f65bb91f085d227d8ae326409b8641 Mon Sep 17 00:00:00 2001 From: juanrossxo <77127202+juanrossxo@users.noreply.github.com> Date: Fri, 25 Apr 2025 14:04:55 -0700 Subject: [PATCH] Update revit_dialog_detection.py Fixed Revit 2024 hang-up when "Changes not saved" dialog box shown, only 3 buttons shown, not 4 as previously shown. --- BatchRvtUtil/Scripts/revit_dialog_detection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BatchRvtUtil/Scripts/revit_dialog_detection.py b/BatchRvtUtil/Scripts/revit_dialog_detection.py index 8cfeddc3..ee05c460 100644 --- a/BatchRvtUtil/Scripts/revit_dialog_detection.py +++ b/BatchRvtUtil/Scripts/revit_dialog_detection.py @@ -204,6 +204,10 @@ def DismissCheekyRevitDialogBoxes(revitProcessId, output_): output() output("'" + enabledDialog.WindowText + "' dialog box detected.") DismissRevitDialogBox(enabledDialog.WindowText, buttons, DO_NOT_SAVE_THE_PROJECT_TEXT, output) + elif enabledDialog.WindowText == CHANGES_NOT_SAVED_TITLE and len(buttons) == 3: + output() + output("'" + enabledDialog.WindowText + "' dialog box detected.") + DismissRevitDialogBox(enabledDialog.WindowText, buttons, DO_NOT_SAVE_THE_PROJECT_TEXT, output) elif enabledDialog.WindowText == CLOSE_PROJECT_WITHOUT_SAVING_TITLE and len(buttons) == 3: output() output("'" + enabledDialog.WindowText + "' dialog box detected.")