We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommandSwitchWindow returns a switch key as a selected option if user highlights it with TAB and presses enter
CommandSwitchWindow
No error message
sample code for testing::
# -*- coding: UTF-8 -*- from __future__ import print_function from pyrevit import script, forms, revit from Autodesk.Revit import DB doc = revit.doc uidoc = revit.uidoc logger = script.get_logger() output = script.get_output() switch, option = forms.CommandSwitchWindow.show( ["opt1", "opt2"], switches=["switch1", "switch2"] ) print(switch, option)
Return no selected options
❯ pyrevit env ==> Registered Clones (full git repos) dev | Branch: "feature/show-view-range" | Version: "4.8.16:354ca85" | Path: "C:\Users\tamas.deri\Documents\repos\pyRevit-dev\dev" ==> Registered Clones (deployed from archive/image) main | Deploy: "base" | Branch: "develop-4" | Version: "4.8.16" | Path: "C:\pyRevit\main" ==> Attachments dev | Product: "Autodesk Revit 2024" | Engine: DEFAULT (2711) | Path: "C:\Users\tamas.deri\Documents\repos\pyRevit-dev\dev" dev | Product: "Autodesk Revit 2023" | Engine: DEFAULT (2711) | Path: "C:\Users\tamas.deri\Documents\repos\pyRevit-dev\dev" main | Product: "Autodesk Revit 2022" | Engine: DEFAULT (2711) | Path: "C:\pyRevit\main" main | Product: "Autodesk Revit 2021" | Engine: DEFAULT (2711) | Path: "C:\pyRevit\main" main | Product: "2020.2.5" | Engine: DEFAULT (2711) | Path: "C:\pyRevit\main" main | Product: "2019.2.1" | Engine: DEFAULT (2711) | Path: "C:\pyRevit\main"
No response
The text was updated successfully, but these errors were encountered:
fixed #2229
3fa0bf4
No branches or pull requests
✈ Pre-Flight checks
🐞 Describe the bug
CommandSwitchWindow
returns a switch key as a selected option if user highlights it with TAB and presses enter2024-04-29_17-55-29.mp4
⌨ Error/Debug Message
♻️ To Reproduce
sample code for testing::
⏲️ Expected behavior
Return no selected options
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: