How to add a radio button box into a user dialog popup by python/C++ API

How to add a radio button box into a user dialog popup by python/C++ API

Anonymous
Not applicable
844 Views
2 Replies
Message 1 of 3

How to add a radio button box into a user dialog popup by python/C++ API

Anonymous
Not applicable

I'm struggling to achieve an ideally really simple task. I would like to add a radio button box into a user dialog popup, as adsk.core.Application.get().userInterface.inputBox but instead of a textbox I need a radio button box (or hypothetically a combobox or other user input interfaces). Is there a simple way to do it?

Thanks

Accepted solutions (1)
845 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

There are very simple dialog boxes like inputBox and messageBox.  They're customizable within a very small scope.  To support the type of customization you described, you need to create a custom command.  When the command is executed you can define the contents of your dialog by adding various command inputs to the dialog.  These include radio buttons, text fields, value fields, scroll bars, images, drop-down lists, buttons, etc.  You'll need to read up on commands and command inputs.

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

Anonymous
Not applicable

Thanks for the reply. It's a pity for this limitation, I found commands, but for my purpose, a customBox would've been ways better!

Anyway, thanks for the reply.

 

0 Likes