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

how can insert a picture to panel?

ho-kou
Advocate

how can insert a picture to panel?

ho-kou
Advocate
Advocate

Hi everyone,

 

I want to insert a picture (.bmp)  to the panel  which was created by api,

how can do it.

 

thanks for your help!

0 Likes
Reply
119 Views
1 Reply
Reply (1)

axalea_thomas
Enthusiast
Enthusiast

When you say "panel" do you mean a Toolbar Panel and you want to add a button with an icon?

 

Or do you a Command Dialog or a Palette ?

 

If you want an icon in a Toolbar panel, you can look into commands\CommandDialog\entry.py in the code that gets generanted when you create a new command:

def start():
    # Create a command Definition.
    cmd_def = ui.commandDefinitions.addButtonDefinition(CMD_ID, CMD_NAME, CMD_Description, ICON_FOLDER)

 

You will have to save the image as PNG. See this info: https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-04eb6198-72cd-4430-a6a4-8d68a1105b8e

Thomas @ Axalea

My Add-ins (Windows)
⌨️ Toolbar & Shortcuts Editor: Assign any key (and some mouse buttons) as keyboard shortcut!
⤴️ Extra Shortcuts: Assign shortcut to Front, Home view, Look At, Activate Component and more!
My Logo: Put your logo in the Fusion window (for presentations and streaming)
 Axalea Notes - Annotate your model with notes
1 Like