Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

DropDownCommandInput reports NoneType for .classType() method

scott
Participant

DropDownCommandInput reports NoneType for .classType() method

scott
Participant
Participant

The adsk.core.DropDownCommandInput.classType() method throws an error, reporting that " 'NoneType' object has no attribute 'classType'". The entire error is included below. For testing purposes, I started a from-scratch script to test. A screen shot from the debug session's also attached.

 

Error message:

Failed:

Traceback (most recent call last):

File "/Users/scottlucas/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/Type Test/Type Test.py", line 12, in run

print(adsk.core.DropDownCommandInput.classType())

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'classType'

 

Debug session:

scott_0-1707432141852.png

 

0 Likes
Reply
95 Views
0 Replies
Replies (0)