Do not update link when revision increments

Do not update link when revision increments

kudryavcevrm
Advocate Advocate
829 Views
2 Replies
Message 1 of 3

Do not update link when revision increments

kudryavcevrm
Advocate
Advocate

Hello,Vault experts! Please,look at such scenario :

I created custom object and inserted link to file "drawing.dwg" into it. After this I changed this file "drawing.dwg"  and changed it's revision to "B". What is a proper way to disable  link revision increment and to disable  link version  increment, so, that we can see "A" revision  and "1" version of linked file by default?

Безымянный.png

I need this because my custom object has been fixed and must reflect "A" revision, not "B"!

0 Likes
830 Views
2 Replies
Replies (2)
Message 2 of 3

Redmond.D
Autodesk
Autodesk

Unfortuately Links only hook to entities at the master level, which means you link to the entire set of versions.  There is no way to create a Link to a specific version.

 

There are couple of workarounds...

 

Option #1 - If your custom object only links to 1 file, you could put the file's version or revision number as a property on the custom object.

 

Option #2 - There is a way set meta-data on a Link. The meta prameter on the AddLink function lets you set any meta data.  You can read the meta-data by calling GetDataOnLinks (or GetMetaOnLinks if you are on Vault 2014).  All these functions are in the DocumentService.

This meta-data will not be visible through the default Vault UI.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 3 of 3

kudryavcevrm
Advocate
Advocate

Thank you, Doug, your answer  helped me! It is an important question.

0 Likes