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

Traceback error

Anonymous

Traceback error

Anonymous
Not applicable

Hello all,

I'm new here.  I just started using fusion.

I want to convert mij model to GBRL using the Add on. Now i get this failure.  

 

Failed:
Traceback(most resent call last):
File *C/User/***/Appdata/Roaming/Autodesk/Autodesk Fusion 360/API/Addins/UGS_Fusion/UGS_Fusion.py*. line 223, in notify
(OpName,UGS_path,UGS_post,UGS_platform,saveSettings,ShowOperations) = getInputs(inputs)
File *C/User/***/Appdata/Roaming/Autodesk/Autodesk Fusion 360/API/Addins/UGS_Fusion/UGS_Fusion.py*. line 190, in getInputs
opName = OperationName
UnboundLocalError:local variable 'operationName' reference before assignment.

Thanks

0 Likes
Reply
597 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor

The last line is saying that you are using the variable named operationName before you've assigned it a value.

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

brad.bylls
Collaborator
Collaborator

I am having the same exception error except the local variable has a been assigned a value.

Error1.png

You can see that when I hovered over strResult2, it shows a value of '1/2"'

I would think that this has been assigned a value.

But I get the exception error:

Error2.png

strResult2 is assigned a value in the input_changed method where it is also assigned as Global.

The error is coming in the on_execute method.

As you can see in the image above it has an assigned value.

I'm puzzled.

Brad Bylls
0 Likes