Autodesk Vault Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How can I clear revision
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
When I add a file it is getting revision "A" since it is going into the default category which has a revision scheme. I then change the category to one that has no revision scheme, hoping that my file will not have a revision, but it keeps the "A" from the previous category.
If I change the default category to the one I want, and then add the file it works as expected, no revision. But I need the category with the revision scheme to be default. How can I make this work?
I looked through the API and couldn't find out how to "clear" the revision. I am able to call DocSvcExt.UpdateFileRevisionNumbers(), but that won't let me set it to "". Is there a call to change the file's revision scheme? It seems like it should use the revision scheme from the category, but it doesn't appear to be working that way as it's inheriting it from the first category.
Thanks,
Re: How can I clear revision
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Try UpdateRevisionDefinitionAndNumbers and pass 0 as definition id and empty string as revision number:
docExtSvc.UpdateRevisionDefinitionAndNumbers(new long[] { file.Id }, new long[] { 0 }, new string[] { string.Empty }, "Update revision");

Jan Liska
Technical Consultant
Autodesk, Inc.

