DropDownCommandInput reporting wrong type

DropDownCommandInput reporting wrong type

scott
Participant Participant
283 Views
2 Replies
Message 1 of 3

DropDownCommandInput reporting wrong type

scott
Participant
Participant

This command input's .type() method reports 'NoneType' as the class type. To be more specific, the error is "NoneType object has no attribute 'classType(). Anyone else see this behavior?

 

Here's the entire error:

Failed:

Traceback (most recent call last):

File "/Users/xxxx/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'

0 Likes
284 Views
2 Replies
Replies (2)
Message 2 of 3

kandennti
Mentor
Mentor

Hi @scott -San.

 

I tried it and it returns "adsk::core::DropDownCommandInput".

0 Likes
Message 3 of 3

scott
Participant
Participant

Kandennti, thanks for checking. I'm getting the correct response when using .classType() on an instance of the class, but not when using it on the class itself. I used a workaround though, so problem solved.