Script - How to input text to a variable ?

Script - How to input text to a variable ?

info83PHN
Advocate Advocate
867 Views
2 Replies
Message 1 of 3

Script - How to input text to a variable ?

info83PHN
Advocate
Advocate

Hi

Stumbling thru python coding and starting to make progress.

Stuck with how to display an inputbox for the user to type text, and save it to a variable.

 

have tried

in = input("Enter your text: ")

but it's not showing any input box when I run the script

 

Pointers please ?

0 Likes
Accepted solutions (1)
868 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

Try the UserInterface.inputBox method.  There's a sample linked to the topic too.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 3

info83PHN
Advocate
Advocate

Sincere Thanks

0 Likes