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

Popup windows

copypastestd
Advocate

Popup windows

copypastestd
Advocate
Advocate

Hello there.

 

I am wondering - is it possible to use popup windows to display some information about my script. Or that window in right bottom corner reserved only for system messages?

 

popup.png

 

Or may be someone could offer other variants to show info messages to user (but not ui.messageBox

0 Likes
Reply
794 Views
6 Replies
Replies (6)

ekinsb
Alumni
Alumni

It is possible to use the error message functionality that you pointed out but it's currently limited to only being used within a command.  In the execute event a CommandEventArgs object is passed in and it has the executeFailed and executeFailedMessage properties.  The first indicates that the execute failed for some reason and the second provides the message that will be displayed in the error box.

 

Something that's coming soon is also the ability to write to the TEXT COMMANDS window. That can be a convenient place to display information.  That's probably mostly useful for debugging but could also be useful in some cases for displaying information for the user.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes

Anonymous
Not applicable

I use ui.messageBox() where ui is:

"app = adsk.core.Application.get()

ui = app.userInterface"


and these are the parameters for this method.
FusionMessageBoxCode.jpg

1 Like

ekinsb
Alumni
Alumni

You're right that the messageBox is what's typically used to display information to the user but in the last line of the original post he specifically said that he doesn't want to use messageBox.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes

Anonymous
Not applicable

Oh, sorry, I did not see that line.
Well since this is still python, you can create a message box like shown in this link.
This was how I used to create them before i discovered ui.messagebox

https://stackoverflow.com/questions/2963263/how-can-i-create-a-simple-message-box-in-python

0 Likes

copypastestd
Advocate
Advocate

Actually, I need to show to the user some info while my script working.

 

But with message box it is very annoying, because user have to press OK button everytime.

1 Like

dzid_
Contributor
Contributor
0 Likes