Vault Customization

Reply
Active Member
Posts: 7
Registered: ‎09-30-2008
Message 1 of 4 (222 Views)

calling a drawing from the vault within VB.NET

222 Views, 3 Replies
09-28-2012 01:20 PM

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:\ 

Employee
Posts: 760
Registered: ‎12-12-2006
Message 2 of 4 (204 Views)

Re: calling a drawing from the vault within VB.NET

10-01-2012 05:51 AM 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.
http://justonesandzeros.typepad.com/

Active Member
Posts: 7
Registered: ‎09-30-2008
Message 3 of 4 (195 Views)

Re: calling a drawing from the vault within VB.NET

10-01-2012 01:26 PM 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:\

Employee
Posts: 760
Registered: ‎12-12-2006
Message 4 of 4 (181 Views)

Re: calling a drawing from the vault within VB.NET

10-03-2012 04:52 AM 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.
http://justonesandzeros.typepad.com/

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community