How can I clear revision

How can I clear revision

Anonymous
Not applicable
607 Views
1 Reply
Message 1 of 2

How can I clear revision

Anonymous
Not applicable

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,

0 Likes
608 Views
1 Reply
Reply (1)
Message 2 of 2

jan.liska
Autodesk
Autodesk

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
Developer Advocate, Autodesk Tandem

0 Likes