Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Search through vault folder

8 REPLIES 8
Reply
Message 1 of 9
CAD-e-Shack
1313 Views, 8 Replies

Search through vault folder

I'm using the free Vault that doesn't have a batch print option so I've been writing some code that does the trick.

 

The code lists open drawings, assemblies and parts, and depending onwhich is selected, displays a list of all the drawings associated with the file and it's sub-components.

 

Everything is good except that when the list of drawings is populated I am only able to search through the working folder for drawings. This means that if the drawing has been modified by another, or the drawing has not been opened on the local computer, it will not print (or print the old version).

 

Is there a way to pull the latest files from vault into the working folder automatically? Currently the only way this is possible is by selecting "Get/Checkout" in vault and downloading the files.

8 REPLIES 8
Message 2 of 9
cwhetten
in reply to: CAD-e-Shack

Are you writing VBA code for Inventor, or for Vault?  I ask because as far as I know, vault commands are not available through the Inventor API.

 

Cameron Whetten
Inventor 2012

Message 3 of 9
CAD-e-Shack
in reply to: cwhetten

The code is in Inventor. And I've run into problems before with VBA and Vault. What would be nice is if I could update the drawings by looking through the vault folder from my computer without going through vault. For example, our vault folder is located on $/Designs/ But whenever I try to access the hidden network drive it cannot be found.

 

I can find the path to the vault folder from my computer, but what I can't do is access the files that are there to update them with the working folder.

Message 4 of 9
cwhetten
in reply to: CAD-e-Shack

The only way to access vaulted files is through the vault client application.  And, (as far as I know), there's no way to tell Inventor to get the latest version from the vault through the API.  I don't know much about VBA, but maybe you could use an external VB program that bridges the gap between the Inventor and Vault APIs?

 

Cameron Whetten
Inventor 2012

Message 5 of 9
CAD-e-Shack
in reply to: cwhetten

Any suggestion which progroms would do that?

I have really only dealt with VBA as I'm pretty much self taught and havent had the gumption to learn a new language.

Message 6 of 9
cwhetten
in reply to: CAD-e-Shack

No, sorry.  I meant you might have to write a VB program that is separate from Inventor or Vault that can access the APIs for both.  I'm not very good at VBA, either.  I can find may way around enough to get my iLogic rules to work, but that's about it.

 

Cameron Whetten
Inventor 2012

Message 7 of 9
mrattray
in reply to: CAD-e-Shack

I would write this as a standalone VB.net application. This would also allow you to use the Inventor Apprentice utility, which is nifty. This will not be an easy task for a novice, however.

You can download visual studio express directly from Microsoft for free: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products

You may want to search around or post in the Inventor Customization forum about this: http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I think your best bet will be to explore the customization forum for something pre-existing.

 

Good luck.

Mike (not Matt) Rattray

Message 8 of 9
swhite
in reply to: CAD-e-Shack

If nothing else can you compare versions from your hard drive to the vault and if different notify you that an update is needed before printing? Not a perfect solution, but at least outdated docs would not get printed by mistake.

Steven White
Lee C. Moore, Inc.
www.lcm-wci.com
Inventor 2011
Intel Dual Xeon E31225 @ 3.1 GHz CPU
16 GB RAM
NVIDIA Quadro 600 GPU
Windows 7 - 64 Bit
Message 9 of 9
CAD-e-Shack
in reply to: swhite

That would be an alternative workaround, but wouldn't that include accessing the vault server? This was the initial problem I was having. I need a way to access vault from within the Inventor VBA. Or at least access the files stored on the vault server.

 

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

Post to forums  

Autodesk Design & Make Report