


If (m_inventorApplication.LoggedIn) // check if user has logged in M_inventorApplication = addInSiteObject.Application The Entitlement API is a simple RESTful API where you just need to send an HTTP GET request to the App Store server.īelow is the sample code that demonstrates this usage: This returns an empty string if user has not logged in. LoginUserName - Read-only property that returns the online services login user name.LoginUserId - Read-only property that returns the login user Id(this is the same as the A360 oxygen Id).LoggedIn - Read-only property that returns whether the user has logged in the online services or not.Inventor 2023 API has introduced 3 new properties to help with checking the Entitlement:

This is what the Entitlement API can help you with. These steps should be able to resolve the error.Īs you may be already aware, If you have an app on the Autodesk App Store, then you might want to check if the user actually paid for and downloaded your app from the store, or just copied it from someone else's computer. ODocument = m_inventorApplication.ActiveDocument Declare the variable of the type document as dynamic before parsing it to the method. The Publish() method takes two arguments, the first is of type Inventor document and the second is of Inventor NameValueMap type. This blog contains steps on how to resolve this errorĪs mentioned in this blog ( here) set the Embed Interop Type to False under the Inventor Interop Assembly referenceĪdd the Microsoft.CSharp reference to your project then import the namespace in the codeĭeclare the PDF converter 3D ApplicationAddin Variable as dynamic as seen below This is because the code uses late binding. However, the C# API code throws an invalid arguments error at the Publish() method. The VB.NET add-in for 3D PDF generation works well and directly without issues.
