Search code examples
pythonrevitpyrevit

How to take user input using PyRevit?


How would I take user input at various points while running a PyRevit script? I know that input('') doesn't work. I am wanting the user to input integers to perform a calculation.


Solution

  • Use the .NET Windows.Forms library and display a prompt for input in a modal Windows form using ShowDialog.