Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've run into a but with the entitlement API with Inventor 2020. The problem happens if my add-in attempts to use the entitlement API before Inventor it doesn't work for Inventor. Here are two use cases where the problem appears.
- When the add-in command is executed, it uses the entitlement API to get the user name and ID to use in the entitlement check. If the user is not logged into A360 then this will return empty strings for these values, which is correct. My add-in then notifies the user that they need to log in to be able to use the add-in. When they attempt to log in they get the dialog below.
It's a bogus message and is the result of my add-in using the AdWebServices component before Inventor. If the user had attempted to log in before running the add-ins command it would have been successful. - The second example is where I want to check the license validity when the add-in is activated. In this case, even if the user was previously logged in and Inventor should be automatically logging into A360 when Inventor is started, it's failing to login. It shows the user name as if the user is logged in but the drop-down is asking the user to log in. The problem here is that apparently the add-in is being loaded before Inventor does the A360 connection so Inventor's use of the component is failing.
Neither of these workflows was a problem with Inventor 2018 or 2019 so it appears to be a regression with 2020.
Attached is an add-in that can be used to reproduce the two cases. For case 2 I have code to get the user data in the Activate method and also the OnLoaded event to see if waiting for the OnLoaded event would be after Inventor had logged in but both fail.
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Solved! Go to Solution.