Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

calling a drawing from the vault within VB.NET

3 REPLIES 3
Reply
Message 1 of 4
dbvetter01
503 Views, 3 Replies

calling a drawing from the vault within VB.NET

What is the vault name or procedure for getting an autoCAD drawing from the vault

example from the c drive I use:

 

g_acadDoc = m_AcadApp.Documents.Open("C:\VAULT_WIP\DWG\L324532.dwg")

 

What would you use instead of C:\ 

3 REPLIES 3
Message 2 of 4
Redmond.D
in reply to: dbvetter01

You call DownloadFile, which gives you a byte array.  You can then save the array to any location on disk that you want.  See the VaultFileBrowser sample in the SDK for an example of a download.



Doug Redmond
Software Engineer
Autodesk, Inc.

Message 3 of 4
dbvetter01
in reply to: dbvetter01

Isn't there a way to map the database as a drive letter?  or server path?  It would be so much easier for programmers.

 

In other EMDS you can map the main vault as a drive letter i.e V:\

Message 4 of 4
Redmond.D
in reply to: dbvetter01

Autodesk.Connectivity.Explorer.ExtensibilityTools.dll has some utilities to help with this.

There is a DownloadFile function which will download to the user's working folder location.



Doug Redmond
Software Engineer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report