Skip to content

Commit

Permalink
improves variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
petersmithfromengland committed May 6, 2024
1 parent 860bcfc commit a1a30b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BatchRvtUtil/Scripts/revit_dialog_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
NO_BUTTON_TEXT = "No"
NO_GUARDAR_PROYECTO_BUTTON_TEXT = "No guardar el proyecto"
OK_BUTTON_TEXT = "OK"
RHINO_7_BUTTON_TEXT = "Rhino 7"
RHINO_SELECTION_BUTTON_TEXT = "Rhino 7" #Change this to target a different version of Rhino by default
STATIC_CONTROL_CLASS_NAME = "Static"
YES_BUTTON_TEXT = "Yes"

Expand Down Expand Up @@ -104,7 +104,7 @@ def SendButtonClick(buttons, output):
noButtons = ui_automation_util.FilterControlsByText(buttons, NO_BUTTON_TEXT)
noGuardarButtons = ui_automation_util.FilterControlsByText(buttons, NO_GUARDAR_PROYECTO_BUTTON_TEXT)
okButtons = ui_automation_util.FilterControlsByText(buttons, OK_BUTTON_TEXT)
rhino_7_buttons = ui_automation_util.FilterControlsByText(buttons, RHINO_7_BUTTON_TEXT)
rhino_selection_buttons = ui_automation_util.FilterControlsByText(buttons, RHINO_SELECTION_BUTTON_TEXT)

if len(okButtons) == 1:
targetButton = okButtons[0]
Expand All @@ -114,8 +114,8 @@ def SendButtonClick(buttons, output):
targetButton = noButtons[0]
elif len(alwaysLoadButtons) == 1:
targetButton = alwaysLoadButtons[0]
elif len(rhino_7_buttons) == 1:
targetButton = rhino_7_buttons[0]
elif len(rhino_selection_buttons) == 1:
targetButton = rhino_selection_buttons[0]
elif len(ignorarButtons) == 1:
targetButton = ignorarButtons[0]
elif len(noGuardarButtons) == 1:
Expand Down

0 comments on commit a1a30b1

Please sign in to comment.