File is a new file, not known to vault

File is a new file, not known to vault

Anonymous
Not applicable
2,912 Views
32 Replies
Message 1 of 33

File is a new file, not known to vault

Anonymous
Not applicable

I am runnign an Ilogic script every file on save. The problem is that if this file is new, and hase never been checked in into vault before, then the vault window appears and has to be closed. I would like to run the script only if the file has already beed in vault once before. Is there a way to check this from within Ilogic? Thanks!

0 Likes
Accepted solutions (1)
2,913 Views
32 Replies
Replies (32)
Message 2 of 33

bradeneuropeArthur
Mentor
Mentor
What do you mean with vault browser? Don't you mean a vault dialog or something?

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 33

Anonymous
Not applicable

uhm? Vault browser? didnt mention a browser..

 

When you create a new file, it is local, and is unknown to vault till the point where you check it in the first time. What i would need is a way to know via ilogic if a file has ever been in vault or if it is a new local only file. 

 

thanks

0 Likes
Message 4 of 33

bradeneuropeArthur
Mentor
Mentor
Using the vault API you can.
Sorry i mean what vault window appears when the file has never been in vault.
Not browser was my mistake.

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 33

Anonymous
Not applicable

Its the property sync window that appears.. 

 

i want to execute this for some files:

 

SyntaxEditor Code Snippet

 ThisApplication.Commandmanager.ControlDefinitions.Item("VaultPropertyWriteBack").Execute

But if a file is only local, and was never in vault before, the prop sync window can only be abortet (obviously). I would like to avoid opening it at all, and run above line only if the file exists in vault and not only locally. 

0 Likes
Message 6 of 33

bradeneuropeArthur
Mentor
Mentor
What version of vault are you using.
With the api of vault it is possible.
Let me know then we cs prepare something maybe

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

Anonymous
Not applicable

Thank you!

 

We have Vault Workgroup 2018,

 

Build 23,2,3,0

Update 2018.2

 

Thank you very much!

0 Likes
Message 8 of 33

bradeneuropeArthur
Mentor
Mentor
Idea.

Why don't you check in the file first with the inventor Api?

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 9 of 33

Anonymous
Not applicable

Because often the file sare just tests that get deleted and there are other scenarios where we do not want to check them in before a certain point in time. unfortunately

0 Likes
Message 10 of 33

bradeneuropeArthur
Mentor
Mentor
Ok that is good to know.
So if the file is not a vaulted file and checked out you don't run the code I assume than?

Can you please send me a private message so I will not forget?

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 11 of 33

Anonymous
Not applicable

The checked out part does not matter to me, for me it is only important that it is not vaulted.. in that case, it should not run the command above..

 

 

Thank you very much for your help braden, appreciate it! 

 

sent you the message as requested.

0 Likes
Message 12 of 33

bradeneuropeArthur
Mentor
Mentor
You could also base it o the read only flag. This means file in vault and not checked out.
But than you are not able to edit the file and edit the properties! Or still you mean in vault and checked out to you. Than edit and synch.

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 13 of 33

Anonymous
Not applicable

the checked in/out part is done automatically by that script..that part is all working well...

 

the only part missing is the "hey, this file is not in vault yet.. dont run the next line of code..."

 

 

something along the lines of:

 

If file_is_vaulted = True then
ThisApplication
.Commandmanager.ControlDefinitions.Item("VaultPropertyWriteBack").Execute
end if

 

0 Likes
Message 14 of 33

bradeneuropeArthur
Mentor
Mentor
Ok that true.
Only brainstorming....

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 15 of 33

Anonymous
Not applicable

we found a solution! 

 

we look at the file version. if it is 1, it has never been in vault. if it has been checked in at least twice then it will have version 1. from the second check in it will have version 2 or more. so we miss one execution of the script but that is not a problem.

0 Likes
Message 16 of 33

bradeneuropeArthur
Mentor
Mentor

Hi.

I am curious about how you read the version of the file without the vault API?

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 17 of 33

Anonymous
Not applicable

I am curious too... Since it was in the Iproperties window I assumed it can be read with the normal iproperties.. just noticed while coding that I cannot access the "Details" tab from ilogic..  so its back to base 1...

0 Likes
Message 18 of 33

bradeneuropeArthur
Mentor
Mentor

Oke.

Than I can help.
This is a hidden I prop.

These are all available properties also the hidden and sets without custom.

 

is it with it the version?

 

#Summary Information
Title
Subject
Author
Keywords
Comments
Last Saved By
Revision Number
Thumbnail
#Document Summary Information
Category
Manager
Company
#Design Tracking Properties
Date Created
Part Number
Project
Cost Center
Checked by
Date Checked
Engr Approved by
Date Eng Approved
User Status
Material
Part Revision
Catalog web link
Part Icon
Description
Vendor
Part Type
Part Type name
Date proxy refreshed
Mfg Approved by
Date Mfg Approved
Cost
Standard
Design Status
Designer
Engineer
Authority
Parameterized Template
Template Row
External Part Revision
Standard Revision
Manufacturer
Standards Organization
Language
Defer Updates
Size Designation
Categories
Stock Number
Weld Material
Mass
SurfaceArea
Volume
Density
Valid MassProps
FlatPatternExtentsWidth
FlatPatternExtentsLength
FlatPatternExtentsArea
SheetMetalRule
LastUpdatedWith
SheetMetalWidth
SheetMetalLength
SheetMetalArea
Material Identifier
Appearance
Flat Pattern Defer Update

 

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 19 of 33

Anonymous
Not applicable

Nope, 😞 unfortunately no version number in there.. 

0 Likes
Message 20 of 33

bradeneuropeArthur
Mentor
Mentor
I will take a look with the vault API ASAP!
Ok?

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