Fusion API - What size image is for the Boolean buttons?

Fusion API - What size image is for the Boolean buttons?

Six1Seven1
Advocate Advocate
456 Views
1 Reply
Message 1 of 2

Fusion API - What size image is for the Boolean buttons?

Six1Seven1
Advocate
Advocate

Hi,

 

I am wondering what size image is required for a button in place of a checkbox. I didn't see them discuss this specifically in the User Guides. No matter what images I put in the referenced resource folder, a generic button comes up.

 

Heres my code to verify that it is correct...

 

fillet_cb = inputs.addBoolValueInput('fillet_cb','Add Fillets', False,'./Resources/Other Icons/fillet_32.png', True)

Here is the folder, which contains both 32x32 and 16x16...

Screen Shot 2017-04-25 at 10.55.45 PM.png

 

Here is the button I am getting in my Addins UI:

 

Screen Shot 2017-04-25 at 10.50.55 PM.png

 

 

* Tried referencing the file path using .png extension - still no luck

Both images are PNG format

 

 

 

Thank you very much

Regards

 

0 Likes
457 Views
1 Reply
Reply (1)
Message 2 of 2

marshaltu
Autodesk
Autodesk

Hello,

 

The argument for icon should be a folder instead of a single image file. And we need give special names to those image files under resource folder. 

 

There are some detailed information about icon in our help document. Please refer to the paragraph "Icons for Commands" in topic "User-Interface Customization".

 

http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-F31C76F0-8C74-4343-904C-68FDA9BB8B4C

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes