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

Command resource path error

Anonymous

Command resource path error

Anonymous
Not applicable

Trying to run a sample command program ("Command Inputs API Sample") given in tutorials, errors...

 

ResourceFolderError.png

 

Any clue?

1 Like
Reply
Accepted solutions (1)
586 Views
4 Replies
Replies (4)

ekinsb
Alumni
Alumni
Accepted solution

Thank you for reporting this.  This sample requires some resource files and they currently aren't being delivered as part of the sample.  I need to figure out how we can solve this in the future.  Probably by adding a link to a zip file that contains the resource files in the sample file.

 

For now, I've attached a zip file that contains the resource files.  Just unpack this so you have the "resources" folder in the same folder where your CommandInputsSample.py file is located.


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

Anonymous
Not applicable

Works wonderfully!!! Thanks a lot.

 

With this, I could get basic command UI up

 

NewCommandUIComesUP.png

0 Likes

therealsamchaney
Advocate
Advocate

Thank you, and similarly, the API script excerpt representing the "bare minimum" command input also references a Resources folder which is nowhere to be found on the web page that it's listed on. The resources zip you provided doesn't work for this one because it's missing a "Sample" folder/file. Do you have that Resources/Sample file or folder to make that one work?

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051#Command...


I think that bare minimum command script should be added to the list of Sample Programs because it's a good stepping stone and a lot less daunting than the big command input sample.

0 Likes

BrianEkins
Mentor
Mentor

You're right that the sample references a "./Resources/Sample" folder, but there's no mention of what's in that folder. It should either describe this or have a link to some files. All you need to do is create a folder named "Sample" in the add-in folder and then add the following PNG files that contain the icons you want to use. 16x16.png, 32x32.png, and 64x64.png.

 

Having it as a sample is also a good idea.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
1 Like