<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Property File in Vault Forum</title>
    <link>https://forums.autodesk.com/t5/vault-forum/custom-property-file/m-p/6294922#M38438</link>
    <description>&lt;P&gt;No. You would need to use C#, VB or similar and use the split string function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string &lt;SPAN&gt;&lt;STRONG&gt;Folder_path&lt;/STRONG&gt;: "$/Drawings/_Demo/&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;/DMO-010 Test Property"&lt;/SPAN&gt;; //&amp;nbsp;&lt;EM&gt;Variable to store the folder path&lt;/EM&gt;&lt;BR /&gt;var &lt;SPAN&gt;get_third_occurrence&amp;nbsp;&lt;/SPAN&gt;= &lt;STRONG&gt;Folder_path&lt;/STRONG&gt;.Split('/')[&lt;STRONG&gt;3&lt;/STRONG&gt;]; &lt;EM&gt;// This will split the folder path by / and return the value to the right of the 3rd occurrence.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or Substring...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var &lt;STRONG&gt;str&lt;/STRONG&gt; =&amp;nbsp;&lt;SPAN&gt;"$/Drawings/_Demo/&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;/DMO-010 Test Property";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var &lt;STRONG&gt;char_to_split_by&amp;nbsp;&lt;/STRONG&gt;= &lt;STRONG&gt;str&lt;/STRONG&gt;.IndexOf("/");&lt;BR /&gt;var get_third_occurrence&amp;nbsp;= index &amp;lt; 0 ? str : str.&lt;STRONG&gt;Substring&lt;/STRONG&gt;(&lt;STRONG&gt;3&lt;/STRONG&gt;, &lt;STRONG&gt;char_to_split_by&amp;nbsp;&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both of these examples will return:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm quite sure Vault doesn't have this functionality built-in to split a string (path) into parts...&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 06:07:08 GMT</pubDate>
    <dc:creator>Darin.Green</dc:creator>
    <dc:date>2016-04-27T06:07:08Z</dc:date>
    <item>
      <title>Custom Property File</title>
      <link>https://forums.autodesk.com/t5/vault-forum/custom-property-file/m-p/6292827#M38437</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about creating a custom property.&lt;/P&gt;&lt;P&gt;I want to create a property named: "MaxCode"&amp;nbsp;(associations: File).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the value of the property i want to get a part of the folder path where there drawing is located.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Folder path: $/Drawings/_Demo/&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;/DMO-010 Test Property&lt;/P&gt;&lt;P&gt;File Property: MaxCode : &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;DMO&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the value in red out of the folder path and put it in the property "MaxCode"&lt;/P&gt;&lt;P&gt;the position of the value that i want is always in third position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this in vault?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 09:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/custom-property-file/m-p/6292827#M38437</guid>
      <dc:creator>davdelomb</dc:creator>
      <dc:date>2016-04-26T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property File</title>
      <link>https://forums.autodesk.com/t5/vault-forum/custom-property-file/m-p/6294922#M38438</link>
      <description>&lt;P&gt;No. You would need to use C#, VB or similar and use the split string function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string &lt;SPAN&gt;&lt;STRONG&gt;Folder_path&lt;/STRONG&gt;: "$/Drawings/_Demo/&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;/DMO-010 Test Property"&lt;/SPAN&gt;; //&amp;nbsp;&lt;EM&gt;Variable to store the folder path&lt;/EM&gt;&lt;BR /&gt;var &lt;SPAN&gt;get_third_occurrence&amp;nbsp;&lt;/SPAN&gt;= &lt;STRONG&gt;Folder_path&lt;/STRONG&gt;.Split('/')[&lt;STRONG&gt;3&lt;/STRONG&gt;]; &lt;EM&gt;// This will split the folder path by / and return the value to the right of the 3rd occurrence.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or Substring...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var &lt;STRONG&gt;str&lt;/STRONG&gt; =&amp;nbsp;&lt;SPAN&gt;"$/Drawings/_Demo/&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;/DMO-010 Test Property";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var &lt;STRONG&gt;char_to_split_by&amp;nbsp;&lt;/STRONG&gt;= &lt;STRONG&gt;str&lt;/STRONG&gt;.IndexOf("/");&lt;BR /&gt;var get_third_occurrence&amp;nbsp;= index &amp;lt; 0 ? str : str.&lt;STRONG&gt;Substring&lt;/STRONG&gt;(&lt;STRONG&gt;3&lt;/STRONG&gt;, &lt;STRONG&gt;char_to_split_by&amp;nbsp;&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both of these examples will return:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm quite sure Vault doesn't have this functionality built-in to split a string (path) into parts...&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/custom-property-file/m-p/6294922#M38438</guid>
      <dc:creator>Darin.Green</dc:creator>
      <dc:date>2016-04-27T06:07:08Z</dc:date>
    </item>
  </channel>
</rss>

