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: 

Example script Add-In fails in validateInputs handler

1 REPLY 1
Reply
Message 1 of 2
wh6Q9NU
105 Views, 1 Reply

Example script Add-In fails in validateInputs handler

When creating a new (default) Add-In, from:

  1. "Script and Add-Ins" (Shift + S)
  2. Tab "Add-Ins"
  3. Click "Create" and select type Python
  4. Open the freshly generate Add-In example and open the file: "entry.py"
  5. Around line 138 with the command definition "def command_validate_input" we see at line 147 "

    inputs.areInputsValid = True"

This is failing. The fix I applied is: "args.areInputsValid = True", then the "OK" button is correctly disabled with an input value below 0.

 

Please check and correct. Thanks!

 

Example-script-Add-In-fails-in-validateInputs-handler.png

 

1 REPLY 1
Message 2 of 2
Rushikesh.kadam
in reply to: wh6Q9NU

@wh6Q9NU Thank you for reporting it. I have created a ticket and assigned it to the concerned team.

 

------------------------------------------------------------------------------------------------------------------------------

If my reply was helpful, please click the "Accept as Solution" button. It helps others get the answer quickly! A "Like" is always welcomed.




Rushikesh Kadam
Senior QA Engineer
Quality Assurance
Autodesk, Inc.


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