Get the LifecycleInfo

Get the LifecycleInfo

JMGunnar
Collaborator Collaborator
320 Views
2 Replies
Message 1 of 3

Get the LifecycleInfo

JMGunnar
Collaborator
Collaborator
Dim lifeCycleInfo As VDF.Vault.Currency.Entities.FileLifecycleInfo = mFileIt.LifecycleInf

 

Can i get LifecycleInfo  from vault with   new snippet 2024 ?

iLogicVault.GetVaultFileStatus

 

Best Regards Johan

0 Likes
Accepted solutions (1)
321 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor
Accepted solution

https://forums.autodesk.com/t5/inventor-programming-ilogic/vault-lifecycle-state-of-model-through-dr...

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

JMGunnar
Collaborator
Collaborator

Thanks @bradeneuropeArthur 

 

This is the code i looking for 

 

 
Sub Main
 
'Validate user's login state; it is optional as iLogicVault methods throw an exception with message 'Please log in to Vault before using this function'.
If iLogicVault.LoggedIn = False
Logger.Error("Not Logged In to Vault! - Login first and repeat executing this rule.")
Exit Sub
End If
 
'returns full file name in local working folder (download enforces override, if local file exists); hand over an empty dictionary for properties
Dim mVaultFileProps As System.Collections.Generic.Dictionary(Of String, String) = New Dictionary(Of String, String)
Dim mVaultItemProps As System.Collections.Generic.Dictionary(Of String, String) = New Dictionary(Of String, String)
Dim mVaultFile As String = iLogicVault.GetFileByFullFilePath("$/Designs/Inventor Sample Data/Fishing Rod/Back Side Cover.ipt", mVaultFileProps, mVaultItemProps) 'Optionally add ..., True) to activate check out for the file downloaded.
If mVaultFile Is Nothing Then
Logger.Error("Vault file not found. Please double check that file path is correct or that the file exists in Vault.")
Else
Logger.Info("File " & mVaultFile & " (including dependent and attachment files) downloaded.")
For Each item In mVaultFileProps
Logger.Info("Vault File Property Name/Value: " + item.Key + " = " + item.Value)
Next
For Each item In mVaultItemProps
Logger.Info("Vault linked Item Property Name/Value: " + item.Key + " = " + item.Value)
Next
Logger.Info("File " & mVaultFile & " download finished.")
'add next action using the downloaded file here, e.g. Component.Replace("Part1:1", mVaultFile, True)
End If
 
End Sub

 

0 Likes