Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DropDownCommandInput reporting wrong type

2 REPLIES 2
Reply
Message 1 of 3
scott
76 Views, 2 Replies

DropDownCommandInput reporting wrong type

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'

2 REPLIES 2
Message 2 of 3
kandennti
in reply to: scott

Hi @scott -San.

 

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

Message 3 of 3
scott
in reply to: kandennti

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report