Purpose of input bar in output window

Hello guys,

I just started playing with pyRevit. Can please anyone explain what’s the purpose of input bar in output window? When I input a string, it returns error. After searching on Google, I found out that IronPython has problem with input() command, but still don’t know what’s the use of input bar.

@smit8462

i tested it with a default value…

than it works

test = 0
test = input()

print("\n {}".format(str(test)))

2024-09-25_10h42_03
2024-09-25_10h41_47

2 Likes

this basically works like a command line

input() gets the actual typed input, you can store it and reuse it for whatever purpose you want and keep on.

ex: you could use the input to send to openai api and built a specific agent using the output window and input method as your ui

1 Like