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

Event Trigger on Vault Check-In

Anonymous

Event Trigger on Vault Check-In

Anonymous
Not applicable

Hello,

 

We're interested in rolling out some automation to our company that checks certain iProperties before allowing a user to check in a model. Is there any way to trigger a rule "Before Check-In" or to write custom triggers?

 

Thanks,

Tighe

Reply
1,366 Views
6 Replies
Replies (6)

bradeneuropeArthur
Mentor
Mentor

Hi,

What version of vault are you using?

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations:

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: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 !

0 Likes

Anonymous
Not applicable

Vault Professional 2019

0 Likes

bradeneuropeArthur
Mentor
Mentor

Hi,

Based on using an add in for inventor you could use the prevaultcheckinevents!

Don't know if this is what you want.

For ilogic I don't know if this is possible easily!

Regards,

Arthur Knoors

Autodesk Affiliations:

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: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 !

0 Likes

marcin_otręba
Advisor
Advisor

it can be done in addin  troug OnActivateCommand event:

for example:

 Private Sub ui_OnActivateCommand(CommandName As String, Context As NameValueMap) Handles oUserInputEvents.OnActivateCommand
            On Error Resume Next
            Select Case CommandName
                Case "VaultCheckin"
'or
                Case "VaultCheckinTop"

            End Select
        End Sub

 

bradeneuropeArthur
Mentor
Mentor

this is not before, and will not trigger before

This is only if the command is activated.

 

Regards,

Arthur Knoors

Autodesk Affiliations:

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: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 !

0 Likes

marcin_otręba
Advisor
Advisor

Hi,

 

I was using this approach before i switched to vault api DocumentService.AddFileEvents.Pre and DocumentService.CheckinFileEvents.Pre events. and to be honest i still use it because when you will use documentservice your code will be fired after you click ok in vault check in window in inventor.

when using on activate command the code will be fired before vault check in window will be displayed, for me this one is better because i will finnish all before gatering check in files.