Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autocad scripts and vault

ohiocad

Structural
Joined
Apr 6, 2001
Messages
196
Location
US
We are currently getting into the vault world with Autocad (have been using it with Inventor for a bit now). One item that I use frequently in Autocad is script files, to run a number of commands in anywhere from 50 - 1000 drawings at a shot. Has anyone run into doing that with Vault? I have been unable to find a way to get it to work, as the drawings need to be checked out of vault to modify and save, but checking in and out doesn't appear can be done by command string.

Or, is there something with Vault that I am simply missing? (Still a newb with Vault, I'm sure I only know enough to be dangerous and ask annoying questions)

I have spent a bit of time searching here, and elsewhere, but everything tries to bring up scipting in Vault, not scripting in Autocad while using vault.

Any input appreciated.
 
Hi Ohiocad,

Why not use the Vault UI to check these files out the way you're supposed to, before executing the script?
Long list? Located in numerous folders? Then use the search bar, first, to get the list, and then check out the files from the search results.
If you tried this already, since it seems to be obvious, then can you say that you did, and why it didn't work?

When you do have them checked out, double-check the files aren't still read-only.

Doing it without checking them out first is likely to be harder.
Check-out requires a "user" to authorize and entitle the check-out, based on the credentials you have been given by the IT department that manages the data server. All the files on your computer are copies of the originals, managed by the server, and changed only when you give the right credentials.
There are subtleties to your credentials that aren't always apparent to you. So when you launch a script, I really don't think you can give it the authorized credentials it needs, unless it carries your user authentication data and can respond correctly to queries from the server. All very complex.
 
Sparweb,

I could have provided more info, my apologies on that. The big hurdle seems to be that they are located within separate folders. When all the files are within one folder, I have used the Vault interface to check them all out at once. I have been unable (it could be very simple and I have just missed it... as I stated, still reasonably new to vault) to check out files within multiple folders at once throught the Vault console.

For files located within one folder, I check out in Vault, then proceed to run the script normal within Autocad, then check the drawings back in - no problems.

Unfortunately, on a typical project release, we may have 300 files located within 100 sub-folders. I can (but would complain the entire time) go through the console and check out all the files in the sub-folders individually but that obviously gets quite time-comsuming. That's where I was hoping that there was some way to complete the action through Autocad within the scipt itself, or the ability in Vault to grab all the folders at once.

Thanks for the time
 
There are various ways to search the Vault. The result is always a list of files. I believe you can use a lot of different search terms to come up with a result.
What characteristic do these files have in common? Surely something, since you want to run the script on these and not others. Configure a search that gets you all/most/many of these files as a result. Then parse or export the search result to a list, or use the script directly on the search result if Vault will let you.
 

Part and Inventory Search

Sponsor

Back
Top