Excel Program to Open Drawings From Vault

Excel Program to Open Drawings From Vault

Lauren_healey
Explorer Explorer
169 Views
2 Replies
Message 1 of 3

Excel Program to Open Drawings From Vault

Lauren_healey
Explorer
Explorer

I am writing an Excel program to run through a list of drawing numbers and retrieve information contained in those drawings. This information is contained as Sketched Symbols in these drawings. I assume the first step would be to locate the drawing in Vault and open it, but I'm not sure how to write an Excel program in VBA to do that. I am also wondering if I will have to install SDK first to write such a program?

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

Nick_Hall
Collaborator
Collaborator

Hi Lauren

 

That's not impossible using Excel VBA, but it is tough. This is a rough outline.

None of the above steps is easy individually; combining them is not for the faint-hearted.

 

I would approach it differently, using PowerShell to access Vault, Excel and Inventor. This would be easier to implement and more stable.

 

The PowerShell script would need to:

  • Connect to Vault
  • Open the Excel file and read in the list of drawings
  • Loop through the drawings, and
    • Locate the drawing in Vault
    • Download it to the local disk
    • Open it in Inventor
    • Use the Inventor API to find the sketched symbols
    • Write the data back to Excel
  • Save the Excel file

There are examples of using PowerShell to connect to Vault & Inventor in these forums, and to Excel in places like StackOverflow.

 

If this raises any questions, just ask

 

Hope this helps

Nick

 

0 Likes
Message 3 of 3

Markus.Koechl
Autodesk
Autodesk

I suggested an alternative approach, as the major process is an Inventor task: use iLogic. It provides built-in Excel interaction, and the iLogic-Vault capabilities share all the methods needed to search, download, and open drawings from Vault.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe