Is there a way using code to pull a drawing number from Vault from our custom number scheme? We're using Vault Pro 2013.
Thanks in advance!
Solved! Go to Solution.
Solved by Vladimir.Ananyev. Go to Solution.
If you need to get your drawing file property (e.g., Part Number) from Vault using Vault API then the following DevBlog posts could be useful:
Thanks for the response!
I'm not sure if you understand what I'm looking for. We have a custom drawing numbering scheme set up in Vault, that assigns a drawing number to a file when saving in AutoCAD or Inventor. The problem is we would like to be able to assign a block of numbers all at once. Right now we are opening a blank AUtoCAD document and saving it and writting down the number that Vault assigns it. I'm looking for a way to have Vault set aside a block of numbers using code.
Hi Mike,
Could you please try to clarify the requirement even more? 🙂
Are you opening an empty drawing and saving it just to figure out the next number that Vault would assign?
Are you trying to find out in advance what numbers Vault would assign the next e.g. 10 drawings?
Is that it?
Cheers,
Hi Adam,
I not only want to know what the next 10 numbers are, I want Vault to allocate them so they cannot be used by anyone else. For instance if the current number is 1000 and I want to use then next 10 number, I want Vault to tell me what the current number is, and the next time someone wants to use a number from Vault they will be "given" the number 1011 by vault.
I hope this clears up any confusion.
Doug Redmond published the post on generation of file names that should give you some ideas:
Generating File Names
http://justonesandzeros.typepad.com/blog/2013/02/generating-file-names.html
These methods
- ReserveFileNamingDescriptions
- GenerateFileNumber
insure that generated file names could not be used for other files.
Cheers,