Getting Inventor application object from dll called from iLogic

Getting Inventor application object from dll called from iLogic

Skadborg.NTI
Advocate Advocate
557 Views
2 Replies
Message 1 of 3

Getting Inventor application object from dll called from iLogic

Skadborg.NTI
Advocate
Advocate

How do I get access to the document object (or the Inventor application object) from a dll called from iLogic? Do I have to pass it from the iLogic rule to my dll? 

In the dll I can get the Vault connection like this:

C#:

Autodesk.DataManagement.Client.Framework.Vault.Currency.Connections.Connection vltConn;
vltConn = Connectivity.InventorAddin.EdmAddin.EdmSecurity.Instance.VaultConnection;

VB.NET:

Dim vltConn as Autodesk.DataManagement.Client.Framework.Vault.Currency.Connections.Connection
vltConn = Connectivity.InventorAddin.EdmAddin.EdmSecurity.Instance.VaultConnection

 

- can I get the Inventor application object in some similar way?

0 Likes
558 Views
2 Replies
Replies (2)
Message 2 of 3

chandra.shekar.g
Autodesk Support
Autodesk Support

@Skadborg.NTI,

 

Refer below link to get Inventor application in VB.net.

 

https://knowledge.autodesk.com/search-result/caas/simplecontent/content/lesson-2-programming-overvie...

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 3

Skadborg.NTI
Advocate
Advocate

Thank you - I am familiar with the functionality to attach to a running Inventor process. Or to create one, and then attach to it.

But here I am talking about a dll being referenced by an iLogic-rule. I would need to get the same Inventor process that runs the rule - not just "a" Inventor process. So can code in the dll "see" the InventorApplication that the rule is running in?

0 Likes