AnsweredAssumed Answered

How do you manage different PDM vault locations for custom properties lists?

Question asked by Matthew Wypych on Jul 8, 2020

I have built a custom properties tab template that includes several lists. These lists are now stored inside our PDM Standard vault. However, different users have installed the vault in different file paths. What is the best way to manage this?

 

Ideally referencing a system value (path or registry entry) in the custom properties xml file would be the ideal as it would cover any option.

 

part.prtprp

<?xml version="1.0" encoding="UTF-8"?>
<CPTemplate>
   <CPSheet>
     <GroupBox Label="Properties" PropName="Groupbox1" DefaultState="">
       <Control Label="Material" PropName="Material" ApplyTo="Config" Type="ComboBox" UserDefineable="True">
         <Data Path="C:\<%PATH TO VAULT FROM REGISTRY%>\Templates\Custom Properties\Material.txt" SourceType="Text" />
     </GroupBox>
  </CPSheet>
</CPTemplate>

 

 

Another alternative would be some sort of try-catch scenario in the xml file.

 

 

part.prtprp

<?xml version="1.0" encoding="UTF-8"?>
<CPTemplate>
   <CPSheet>
     <GroupBox Label="Properties" PropName="Groupbox1" DefaultState="">
       <Control Label="Material" PropName="Material" ApplyTo="Config" Type="ComboBox" UserDefineable="True">

         Try
           <Data Path="C:\<PATH OPTION 1>\Templates\Custom Properties\Material.txt" SourceType="Text" />

         Catch

           <Data Path="C:\<PATH OPTION 2>\Templates\Custom Properties\Material.txt" SourceType="Text" />
     </GroupBox>
  </CPSheet>
</CPTemplate>

 

Is anything like either of these options possible?

 

Is there another way of doing it?

 

Thanks,

 

Matt

Outcomes