Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Initial revision number

mgrenier1
Advocate

Initial revision number

mgrenier1
Advocate
Advocate

How can I set the initial revision number for Inventor files when they are first pushed into Vault?

 

I'm only using 1 lifecycle with 3 steps, In conception, In approbation, and Approved for fabrication

 

My revision scheme is setup files In conception should have their revision start at 0.0.1 however when the files get pushed into Vault for the first time they're all on revision 0.

 

I'm trying to avoid having to change it manually like the plague.

 

I tried setting the revision number to 0.0.1 in my files but Vault just overwrites it to 0 no matter what

 

Any ideas how to fix this??

0 Likes
Reply
114 Views
1 Reply
Reply (1)

Nick_Hall
Advocate
Advocate

Hi 

I haven't tested this, but what I would try is

  • Create a "Numeric starting with 0" Revision Sequence"
  • Create a Revision Scheme with
    • Primary - "Numeric starting with 0" Revision Sequence"
    • Secondary - "Numeric starting with 0" Revision Sequence"
    • Tertiary - "Numeric"
  • Assign the above Scheme to the relevant category
  • Create a Vault add-in that catches the "post file add" event
  • In the event handler, check for 
    • The correct category
    • That the file version is 1
    • That the Revision is 0
    • If so, use RevisionService.GetNextRevisionNumbersByMasterIds to get the next Revision Numbers
      This returns an array of {Next Primary Revision, Next Secondary Revision, Next Tertiary Revision}
      Use DocumentServiceExtensions.UpdateFileRevisionNumbers passing through the Next Tertiary Revision, which should be 0.0.1

Hope that's helpful

Nick

0 Likes