Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault DataStandards Filename and location from properties

1 REPLY 1
Reply
Message 1 of 2
richardbron
250 Views, 1 Reply

Vault DataStandards Filename and location from properties

Hello,

 

I want to create new files from Vault. I created a xml file with dependencies. If in the first option 1 is selected then the second option is different then when 2 is selected. That part works. Also the name should be generated depending on the choices looking something like this:

  • Design Type
  • MainGroup (Predifined)
  • SubGroup (Predifined but depended on MainGroup choice)
  • Project
  • DrawingNumber

The filename should be MainGoupSubGroup-Project-DrawingNumber.ipt

The location should be Design Type\MainGroup\SubGroup\ProjectNumber

 

Can this be done with the Vault DataStandards?

1 REPLY 1
Message 2 of 2
Nick_Hall
in reply to: richardbron

Hi Richard

 

Yes,it can. You will need to create some code that runs every time one of the components of the file name changes and generates the file name.

 

Then you can set the returned filename using a line like this, where $fileName is your generated file name

 

$Prop["_FileName"].Value = $fileName

 

That gets passed back to the VDS code, which will create your file from the selected template.

 

Hope that helps

Nick

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

Post to forums  

Autodesk Design & Make Report