Run a Inventor VBA macro when "Checking In" a assembly, part or drawing in Vault

Run a Inventor VBA macro when "Checking In" a assembly, part or drawing in Vault

isocam
Collaborator Collaborator
1,283 Views
4 Replies
Message 1 of 5

Run a Inventor VBA macro when "Checking In" a assembly, part or drawing in Vault

isocam
Collaborator
Collaborator

Can anybody help?

 

Is it possible to run an Autodesk Inventor VBA macro when "Checking In" a assembly, part or drawing using Vault?

 

Many thanks in advance!

 

Darren

0 Likes
Accepted solutions (1)
1,284 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

What do you exactly mean?

  1. Before check in?
  2. after check in?

you could use your own written command for it, and run your code first and afterwards the check in command.

 like:

public sub (Custom Check in)

"Your commands here"
Dim CmdMan As ControlDefinition Set CmdMan = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop") 'or useVaultCheckin CmdMan.Execute ' or use CmdMan.Execute2 (True)
end sub

Or take a look at this:

https://forums.autodesk.com/t5/inventor-customization/use-inventor-vault-add-in-through-inventor-api...

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
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 !

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 5

SPALANIAPPANTN47S
Enthusiast
Enthusiast

While executing this code, how to select Ok button automatically?
If any ideas, Suggest me !!

SPALANIAPPANTN47S_0-1607945737491.png

Thanks in advance!!

0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi,

 

You can first disable the dialog on check in via the options in the Vault tab.

 

or use the "AppContextual_OKCmd "

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 5 of 5

SPALANIAPPANTN47S
Enthusiast
Enthusiast

Thank u @bradeneuropeArthur . Solved