<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Inventor 2018 - Entitlement API Changes? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-entitlement-api-changes/m-p/7028277#M101511</link>
    <description>&lt;P&gt;Has something changed in the Inventor 2018 API for retrieving the Autodesk 360 account name and/or the entitlement&amp;nbsp;API? What worked in 2016 and 2017 now doesn't work in 2018.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 23:44:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-19T23:44:58Z</dc:date>
    <item>
      <title>Inventor 2018 - Entitlement API Changes?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-entitlement-api-changes/m-p/7028277#M101511</link>
      <description>&lt;P&gt;Has something changed in the Inventor 2018 API for retrieving the Autodesk 360 account name and/or the entitlement&amp;nbsp;API? What worked in 2016 and 2017 now doesn't work in 2018.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 23:44:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-entitlement-api-changes/m-p/7028277#M101511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T23:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 - Entitlement API Changes?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-entitlement-api-changes/m-p/7032558#M101512</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Inventor 2018, Autodesk 360 account name can be accessed through Entitlement API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Entitlement API&amp;nbsp;can be accessed from&amp;nbsp;"&lt;STRONG&gt;AddinNETFramework.AdWebServicesWrapper.dll&lt;/STRONG&gt;" at installed location &lt;STRONG&gt;(C:\Program Files\Autodesk\Inventor 2018\Bin)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So,&amp;nbsp;in order to access API, AddReference "&lt;STRONG&gt;AddinNETFramework.AdWebServicesWrapper.dll&lt;/STRONG&gt;" from installed location to the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the sample VB.Net and C# code in the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB.net&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Imports Autodesk.WebServices&lt;BR /&gt;&lt;BR /&gt;Dim webServiceMgr As CWebServicesManager
webServiceMgr = New CWebServicesManager()

Dim isWebServiceInitialized As Boolean
isWebServiceInitialized = webServiceMgr.Initialize()

If isWebServiceInitialized = True Then
&lt;BR /&gt;    Dim userId As String = ""
    webServiceMgr.GetUserId(userId)

    Dim userName As String = ""
    webServiceMgr.GetLoginUserName(userName)
&lt;BR /&gt;End If&lt;/PRE&gt;
&lt;P&gt;C#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using Autodesk.WebServices;&lt;BR /&gt;&lt;BR /&gt;CWebServicesManager mgr = new CWebServicesManager();
bool isInitialize = mgr.Initialize();

if (isInitialize == true&lt;BR /&gt;{
     string userId = "";
     mgr.GetUserId(ref userId);

     string username = "";
     mgr.GetLoginUserName(ref username);
}&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is any doubt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves your problem, click on "Accept as solution" / Give a "Kudo"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 10:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-entitlement-api-changes/m-p/7032558#M101512</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2017-04-21T10:33:07Z</dc:date>
    </item>
  </channel>
</rss>

