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.
How to take user input using PyRevit?
916 views Asked by Christian Gentry At
2
There are 2 answers
0

There i a build in method for this. Example
from rpw.ui.forms import TextInput
value = TextInput('Title', default="3")
print(value)
More examples in the doc: https://revitpythonwrapper.readthedocs.io/en/latest/ui/forms.html
Use the .NET
Windows.Forms
library and display a prompt for input in a modal Windows form usingShowDialog
.