Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Script - How to input text to a variable ?

info83PHN
Advocate

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
Reply
Accepted solutions (1)
596 Views
2 Replies
Replies (2)

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
1 Like

info83PHN
Advocate
Advocate

Sincere Thanks

0 Likes