Revision Confusion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Vault Professional 2013.
Item Card has a revision number. (This is easy to extract and always accurate)
File has a (Revision, and a Rev Number property, extractable through get properties) as well as a fileRev.Label property, which is part of the file object.
Part of a utility I have written compares the Item Card Revison against the Revision value that is contained within the "iPropeties/Project/Revision Number" field in the Inventor Part/Assembly.
I extract thie "file" value by creating a File Object and referencing the "..PropertyService.GetProperties("FILE", new long[] { fileId }, new long[] { 57 })" function. 57 being the ID of the "Rev Number" property.
This value does not always seem to be correct. I have confirmed that it "sometimes" comes up "blank" even when I have a value in that field.
In cases where I have drawings (that do not link to any models) this value is always an empty string, regardless of what I have in the field.
How can I extract this value consistantly and correctly from my files?
