cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault Data Standard for Part Number update when creating a new Inventor file.

Vault Data Standard for Part Number update when creating a new Inventor file.

Currently when creating a new Inventor file using Vault Data Standard tools, the Part Number property does not get populated with the file name of the new file. 

The expectation is to have behavior similar to Inventor's when the iProperty "Part Number" is left blank, Inventor populates it with the file name.

At a minimum, an option switch is needed similar to the Rename Tool:

hcarruthers_0-1686939207119.png

or the Copy Design Tool:

hcarruthers_1-1686939241344.png

 

If Vault can do this with its other tools, then expectation from the user’s perspective is that this should also be available with VDS when creating new files.

With out this functionality, the New File tool in VDS is inefficient and requires extra work from the user (and potentially more error possibilities.)  

It is possible to manually populate the Part Number property when creating the file if you are manually naming the files. However, this is not possible when using the Vault's Automatic Numbering tools with Sequential fields as the values are not visible until the file is created.

hcarruthers_4-1686940085262.png

Once the file is created, the user must then either edit the Part Number property in Vault, or Checkout the file and edit it thru Inventor. 

 

 

 

16 Comments
Markus.Koechl
Autodesk

Sounds reasonable; you can achieve this by adding the highlighted line to your custom Default.ps1 script: 

MarkusKoechl_0-1687959340559.png

 

ihayesjr
Community Manager

@hcarruthers 

Thank you for posting the idea. What version of Vault are you using?

hcarruthers
Participant

Currently using Vault and Inventor 2024

ihayesjr
Community Manager

@hcarruthers 

If you create a new file, IPT, then save it using the Data Standard dialog. Don't check it in but then check the iProperties, do you see the Part Number with a value?

hcarruthers
Participant

Creating a new file from Inventor and the Data Standard save tool performs as expected, using the file name to populate the iProperty "Part Number"

 

VDS creates the new file in the Vault. Both the Vault Property and the iProperty use the Part Number value that is in the template, in this case "ANSI (in)"

hcarruthers_0-1688581987279.png

 

Vault result:

hcarruthers_1-1688582164007.png

iProperty of local file

hcarruthers_2-1688582273718.png

 

iProperty of template file:

hcarruthers_4-1688582486677.png

 

 

ihayesjr
Community Manager

So, the template file already has a value for the Part Number.

You will need to implement what @Markus.Koechl indicated in the Data Standard code or make sure your template doesn't have a value for the Part Number.

ihayesjr
Community Manager
Status changed to: Archived
 
hcarruthers
Participant

@ihayesjr - The values in the templates are generated by Inventor when the file is created. As explained to me years ago, there is a background code in the Part Number field that Inventor executes to populate the Part Number with the file name minus the file extension when a new file is created. Manually editing this field removes that code and thus it is important that any 3rd party program (including Vault) that renames Inventor files has an option to update Part Number values.

 

@Markus.Koechl - The Default.ps1 that I found in "C:\ProgramData\Autodesk\Vault 2024\Extensions\DataStandard\CAD\addins"  does not match your screen capture. Should the file found in "C:\ProgramData\Autodesk\Vault 2024\Extensions\DataStandard\Vault\addinVault" be modified?

 

@ihayesjr 

While adding the custom code will solve the short term need for individual users it is not a practical solution for large organizations that need this file modified for many users or for organizations that do not have the programing resources to support such changes.

ihayesjr
Community Manager
Status changed to: Future Consideration

@hcarruthers 

We could see about added Markus' code to the out of the box configuration.

 

hcarruthers
Participant

@ihayesjr  - That should be an acceptable solution, thank you

@Markus.Koechl - I tried your code,

hcarruthers_0-1688589328747.png

but I have not be able to get it to work. I modified the default.ps1 in "C:\ProgramData\Autodesk\Vault 2024\Extensions\DataStandard\Vault\addinVault" and I also placed a copy of the modified file in "C:\ProgramData\Autodesk\Vault 2024\Extensions\DataStandard\CAD.Custom\addins". 

Can you provide any suggestions?

Markus.Koechl
Autodesk

@hcarruthers: I missed that the default multi-language table does not list the "Part Number" property. We need to add this also. The video below documents the complete modification you need to make this work.

And - I vote to make this addition default in future versions ;).

vali_dobrea
Advocate

Nice video @Markus.Koechl! By "I vote to make this addition default in future versions ;)." can we aspect this to be also applied on 2023 version if accepted?  

Markus.Koechl
Autodesk

Hello, @vali_dobrea; you can also apply the solution as demonstrated in 2023.

ihayesjr
Community Manager

@vali_dobrea 

Let me clarify Markus' response. You can manually add the information to the 2023 version. 

We will only implement the changes in a future version.

hcarruthers
Participant

@Markus.Koechl  Thank you for the video. I was able to customize the files and I will share this workflow with my client.

 

davidedP2FJC
Observer

Hi everyone, we're run into the same issue with both 2022 and 2025 release. We create an ipt or iam file, then we use VDS tool to copy the file. If the Inventor file doesn't have any model state, the VDS tool works properly but once the it has at least one model state, the tool stop working as expected as the part number is left blank. Following some questions, hoping someone can help me:

 

- also my Default.ps1 that I found in "C:\ProgramData\Autodesk\Vault 2024\Extensions\DataStandard\CAD\addins"  does not match the screen capture. What's the right path?

- do we need to copy the entire GetNewFileName function? 

 

Thanks. Have a nice day.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea