Skip to content
How to use the Autodesk App Store Entitlement API in your app.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Autodesk App Store Entitlement API

This is a C# class with a public method called ValidUser. The method requires the AppId to be passed to it and will return a True/False on whether the user has purchased your app from the App Store. You can find the AppId for your app after you have started the submission process on the App Store. The user needs to be signed in to their Autodesk account through Inventor because that is where it is getting the User ID. If they are not signed in it will return false.

From what I read, they added this API with Inventor 2016 but then changed how you get the user id in Inventor 2018. So in this method it has a try/catch where it will try using the 2018 method of getting the user id but if it fails it will check using the old method so that it will support users that are not using up to date software.

You will need to add a couple of references to your project:

  1. AddinNETFramework.AdWebServicesWrapper

      - C:\Program Files\Autodesk\Inventor 2018\Bin\AddinNETFramework.AdWebServicesWrapper.dll
  2. RestSharp

      - To add this go to Tools > Nuget Package Manager > Package Manager Console
      - Enter this into the console "Install-Package RestSharp" (no quotes)
      - I had to make sure I was using .NET Framework 4.5.2
You can’t perform that action at this time.