• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Vault Customization

    Reply
    Distinguished Contributor
    FarrenYoung
    Posts: 161
    Registered: 07-13-2009

    How can I clear revision

    71 Views, 1 Replies
    02-03-2012 07:43 AM

    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,

    --Farren Young (formerly AutomationGuy)
    Employee
    Posts: 19
    Registered: 10-18-2006

    Re: How can I clear revision

    02-04-2012 01:01 AM in reply to: FarrenYoung

    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.