Copy Design - Reset File Save Counter

Copy Design - Reset File Save Counter

MarcoMoura9852
Enthusiast Enthusiast
489 Views
4 Replies
Message 1 of 5

Copy Design - Reset File Save Counter

MarcoMoura9852
Enthusiast
Enthusiast

Hello,

 

I've noticed that when a part file copy design is performed the FILE SAVE COUNTER isn't reseted, it continuous with the value that the copied part had.

 

Is there any chance to change this vault caracteristic and reset this counter?

 

Explaining why I need this.

  1. I've created an ilogic rule that deletes / resets some Autodesk Inventor iproperties when a "SAVE AS" operation is done. The purpose is to avoid human error, and avoid that obsolete values are kept on those iproperties fields.This rule checks the FILESAVECOUNTER is equal to [0] or [1]. If that's the case, the mentioned iproperites fields are reseted.
  2. However, if the new pat is created thru a COPY DESIGN process on VAULT, the FILESAVECOUNTER isn't reseted, and keeps the same value on the original part. This is a problem on my plan, becuase I only solve half problem.

 

Hope I made myself clear and that some you can help me finding a solution to this.

 

Best Regards,

 

Marco

 

 

 

 

 

 

0 Likes
490 Views
4 Replies
Replies (4)
Message 2 of 5

CGBenner
Community Manager
Community Manager

@MarcoMoura9852 

 

Hello.  Is this what you are referring to?

CGBenner_0-1647865374757.png

 

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 3 of 5

MarcoMoura9852
Enthusiast
Enthusiast

Hello,

 

Thank for your reply.

 

To be honest, I can't find the box you are now sharing. Maybe my version is older than yours (I'm still using 2020 version, intend to upgrade to the new version during next month.)

Can you explain me how you got that box?

 

The variable I'm talking about is not the file version, is the number of times that specific file was saved. I get that from a "doc.FileSaveCounter". See below the rule code.

 

' Rule to reset files iproperties during a file "SAVE AS"

'Choose the file to apply the rule.
doc = ThisDoc.ModelDocument

'If condition - File Save counter and File Type (parts only)
If (doc.FileSaveCounter = 0 Or doc.FileSaveCounter = 1) And (doc.DocumentType = kPartDocumentObject) Then


'Testing purpose only - Message box with the number o file saves - It will be deleted, after the rule is 100% working.
MsgBox(doc.FileSaveCounter)

'iproperties to reset / delete

iProperties.Value("Summary", "Title") = ""
iProperties.Value("Summary", "Subject") = ""

 

0 Likes
Message 4 of 5

CGBenner
Community Manager
Community Manager

@MarcoMoura9852 

 

Thank you for clarifying.  The image I shared was actually taken from Windows Explorer, looking at the iProperties of a file.  Version, of course, is also visible in Vault.  

What you are looking for seems to be something in the Inventor API, so I don't think your solution for this is going to be found in Vault.  I will move this post over to the Inventor iLogic and VB.net forum in the hope that one of the gurus there will have some better insight for you.  Good luck!

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 5 of 5

MarcoMoura9852
Enthusiast
Enthusiast

Hello again.

 

Ok, I understood now where you got that.

I got the same information here, thru explorer.

 

MarcoMoura9852_0-1647867087323.png

 

In fact, the filesavecounter seems to get value from the "current version".

The pRoblem is the same, When a Vault copy design is peformed the file version isn't reseted, the counting continues.

Above is a new part, made with vault copy design, and you can see the counting continues..

 

MarcoMoura9852_1-1647867368304.png

If it's a new part, I was expecting the file version to become [1]

 

Any suggestion?

 

Best regards.

 

Marco

 

0 Likes