Hello,
I’m working on customizing data standards for both the Vault and Inventor side.
On the Inventor side I wanted to have different required fields for parts and assemblies. While I am able to hide fields, I can't see a way in powershell to edit the required value fields. I’m starting to wonder if it’s possible or not. I have a hack right now where when I hide certain fields in powershell, I place a string into those require fields to get the data standards to submit.
For the Vault side in editing the 'created standard file' function. While I can remove fields here, I’m not sure how to add new fields that require a value. The vault side doesn't seem to have a cfg file where elements are set. Originally I wanted to remove some fields and add new required value fields that are able to be understood as custom properties by inventor. Now I’m just checking how much the 'created standard file' function inside vault can be changed.
This is for vault 2015 professional. (Not the R2 but the original professional version)
Thanks
Zach Howe
Solved! Go to Solution.
Solved by wangdu. Go to Solution.
Hi,
For the Inventor part, I guess you could probably take away the "RequiresValue=True" attribute in the Inventor.cfg file. You can then take away your hack in the powershell.
For the vault part, you cannot add new custom property through DataStandard but you can add values to existing custom property. You just have to know the name of the property so that you can use Prop[yourcustompropertyname].Value = someValueFromTextBox. For the validation part, in the Default.ps1 at C:\ProgramData\Autodesk\Vault 2015\Extensions\DataStandard\Vault\addins, there are validation functions which you can use to set up constraints to you fields.
For datastandard documentation, here is the link to the wiki.
Hope it helps,
Wangdu
coolOrange
Thanks for the reply.
Is it possible to have different required fields for Parts and assemblies within data standard for Inventor? If I remove "RequiresValue=True" form the .cfg file it will remove the attribute requirement for both.
Zach Howe
Hi,
Sorry, I misunderstood the question.
No, you can't have different required fields for Parts and assemblies within data standard for Inventor. But, however, you can point the RequiresValue attribute to a name of a powershell function which should do the validation for you. When the function returns true, the OK button will be enabled and disabled otherwise.
Hope it helps,
Wangdu
coolOrange
www.coolOrange.com