Read file iProperty from Vault

Read file iProperty from Vault

Anonymous
Not applicable
7,048 Views
28 Replies
Message 1 of 29

Read file iProperty from Vault

Anonymous
Not applicable

How would I go about reading the Revision number iProperty, of the active inventor file, from Vault using either VBA or VB.net?

0 Likes
7,049 Views
28 Replies
Replies (28)
Message 21 of 29

Anonymous
Not applicable

Yes, that's all correct

0 Likes
Message 22 of 29

bradeneuropeArthur
Mentor
Mentor

can you please take a look if all properties are synchronized!

 

otherwise:

 

replace the msgbox with:

MsgBox(hh(0).FileRev.Label.ToString)

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 23 of 29

Anonymous
Not applicable

How do I check if properties are synchronized?

 

This is the vault view of the part that I'm testing

Vault part properties.JPG

This is the name of property I want to get:

Vault part properties fields.JPG

and its setup to map with Inventor

Rev number mapping.JPG

 

I added ToString as you suggested but it's still blank.

 

Sorry to take lots of your time, I appreciate all your help

 

0 Likes
Message 24 of 29

bradeneuropeArthur
Mentor
Mentor
May I ask why you would like to know only the vault revision. Maybe there could be a simpler solution for your problem and your needs.

I need to take a second look at the code because you are using vault basic. The code of the revision needs another approach. The revision.label seems to be not available for vault. So I need to take a look at this.

Why do you want to check the revision?

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 25 of 29

Anonymous
Not applicable

I have an iLogic rule our team uses to check if the revision number of their active document matches the rev number of the part it was copied  from (master file). At the moment im relying on the user manually making sure they have the latest version of that master file on their local drive. I would like to directly check the revision num property of that master file in Vault instead. (or get the latest version of it locally before comparing the two)

0 Likes
Message 26 of 29

bradeneuropeArthur
Mentor
Mentor
Then you should beter check if the file is latest version. This is much easier and a better solution.

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 27 of 29

bradeneuropeArthur
Mentor
Mentor
This is much easier to check. Because a revision can also have different versions of course.

Let us take a look at it....

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 28 of 29

bradeneuropeArthur
Mentor
Mentor

Hi to check what you need will be as follow:

 

Check the Creation date of the vault file with the local file.

 

Dim fio As System.IO.FileInfo = New System.IO.FileInfo(Odoc.FullFileName)

MsgBox("Local File date = : " & fio.CreationTime & " Vault File Date = : " & hh(0).CreateDate.ToString)

These are different when not downloaded the latest revision!!

 

Hope this will help you solve your problem.

 

 

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

bradeneuropeArthur
Mentor
Mentor

Hi,

Could the above help you in your needs?

Otherwise I am also able to represent you the revision from vault. But will this help you is the question?

 

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