VBA code to quickly check in and check out files in vault from inventor drawing?

VBA code to quickly check in and check out files in vault from inventor drawing?

francesco.dinh
Advocate Advocate
1,584 Views
4 Replies
Message 1 of 5

VBA code to quickly check in and check out files in vault from inventor drawing?

francesco.dinh
Advocate
Advocate

Whenever I have to make quick changes to an idw that's already checked in and released (say a dimension is misplaced or such) I'll have to do a "modifica leggera", an edit that doesn't change the revision number. The process is more or less like this.

- From the vault sidebar in the inventor drawing, I'll edit the state to "modifica leggera". This removes the released state from the part without adding a revision number.

immagine.png  immagine.png

- check out the file

immagine.png

- make the changest that I want and save

- check in the file

immagine.png

- release it in vault

immagine.png  immagine.png

This whole "modifica leggera" > check out > edit > save > check in > release gets really repetitive, especially if I have to do it for a bunch of released files.

Is there a way to have a script to make this process automatic? I'm talking especially about "modifica leggera" > check out and, afterwards, check in > release.

Thanks in advance for any input.

1,585 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

Hi @francesco.dinh<,

 

Absolutely a good idea for the "Idea station".

I will vote it if your create it...

 

There are (For this exampe) so many steps to take/do, and in general this could possibly defined in one or two commands like:

(Change state > Release>>>> WIP

Check out)

 

and the other command:

(Change state> WIP>>>> Release

Check in)

 

What you could do is write your own add in for it and combine these command to one custom command.

 

Regards,

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

francesco.dinh
Advocate
Advocate

Hey, thanks for your reply, I'm glad I'm not the only one who find this process so long! I'm afraid I don't have nearly the skillset to create an inventor addin, but I'd be glad if somebody were to try and do it.

 

I wanted to start much more humbly with a VBA macro, but I'm not 100% sure how inventor and vault communicate between each other (especially because they might not be both "speaking" VBA, as others have pointed out). If it's jus a matter of chunking together a few VBA lines in a macro that's doable, but my knowledge stops there. I'm hoping other people have faced this before!

0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

What version of Vault are you using?

 

I could help you to create you first add in for inventor(Vault) using VB.net, if you like!

Maybe the first step is to create a new idea in the Idea station.

 

Regards,

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

Message 5 of 5

GeorgK
Advisor
Advisor

Hello @bradeneuropeArthur ,

 

very interesting idea. I use Vault 2017. This would save a lot of time.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-open-file-from-vault/td-p/5701827

 

Georg

0 Likes