[Assign / Update Item] using ilogic in Inventor

[Assign / Update Item] using ilogic in Inventor

Michele_DeLucaSW7PJ
Contributor Contributor
112 Views
1 Reply
Message 1 of 2

[Assign / Update Item] using ilogic in Inventor

Michele_DeLucaSW7PJ
Contributor
Contributor

Hi everybody, there is a way how to do Assign/Update item in Inventor from Show Details pane? I'm in Inventor 2022

assign update item.png

0 Likes
Accepted solutions (1)
113 Views
1 Reply
Reply (1)
Message 2 of 2

mfoster9TD82
Advocate
Advocate
Accepted solution

You'll need to use the Vault API for that. The best way would probably be to make a .dll with all the Vault methods you need to use in Vault(see this AU course) but you can do it directly from iLogic if you need to, just add your references to the he...

AddReference "Autodesk.Connectivity.WebServices"
AddReference "Autodesk.DataManagement.Client.Framework.Vault"
AddReference "Connectivity.InventorAddin.EdmAddin"
Imports VDF = Autodesk.DataManagement.Client.Framework
Imports Autodesk.DataManagement.Client.Framework.Vault.Currency.Connections
Imports edm = Connectivity.InventorAddin.EdmAddin
AddReference "Connectivity.Application.VaultBase.dll" 'required
Imports VB = Connectivity.Application.VaultBase 'required
AddReference "Autodesk.Connectivity.WebServices.dll"
Imports ACW = Autodesk.Connectivity.WebServices

 

You'll want to:

  1. get the part number and filepath from Inventor
  2. convert the filepath to a vault path
  3. find the file in vault
  4. get/create the item
  5. update the item

See this article for more specifics on updating items with the Vault API

Its probably easiest to just use the built in Vault tools in Inventor though.

Hope this helps

0 Likes