<?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: Replace a portion of the filename using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136785#M37726</link>
    <description>&lt;P&gt;Are you replacing the file or just modifying the description /part number? Either way you can use string functions to isolate the section of the string that will change. Split could work here targeting the underscore. Microsoft examples are &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.split" target="_blank" rel="noopener"&gt;here&amp;nbsp;&lt;/A&gt;and ilogic example&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/ilogic-split-a-string/m-p/8777436#M106416" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post up an attempt and forum members can help out if you get stuck.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 00:49:28 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2022-04-29T00:49:28Z</dc:date>
    <item>
      <title>Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136760#M37724</link>
      <description>&lt;P&gt;Good day.&lt;BR /&gt;&lt;BR /&gt;I want to achieve on how to replace a portion of a part filename.&lt;BR /&gt;Example:&lt;BR /&gt;Before:&lt;BR /&gt;12345_PART1.ipt&lt;BR /&gt;&lt;BR /&gt;After:&lt;BR /&gt;67890_PART1.ipt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 00:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136760#M37724</guid>
      <dc:creator>Jason_Aloot</dc:creator>
      <dc:date>2022-04-29T00:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136767#M37725</link>
      <description>&lt;P&gt;To make it clear.. I want to replace the filename in the iProperties.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 00:30:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136767#M37725</guid>
      <dc:creator>Jason_Aloot</dc:creator>
      <dc:date>2022-04-29T00:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136785#M37726</link>
      <description>&lt;P&gt;Are you replacing the file or just modifying the description /part number? Either way you can use string functions to isolate the section of the string that will change. Split could work here targeting the underscore. Microsoft examples are &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.split" target="_blank" rel="noopener"&gt;here&amp;nbsp;&lt;/A&gt;and ilogic example&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/ilogic-split-a-string/m-p/8777436#M106416" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post up an attempt and forum members can help out if you get stuck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 00:49:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136785#M37726</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-04-29T00:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136815#M37727</link>
      <description>&lt;P&gt;Thanks for your quick reply. I am modifying the description on the iProperties.&lt;BR /&gt;&lt;BR /&gt;I will look at the example links you provided. thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 01:08:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11136815#M37727</guid>
      <dc:creator>Jason_Aloot</dc:creator>
      <dc:date>2022-04-29T01:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137176#M37728</link>
      <description>&lt;P&gt;here's one example from a rule I use regularly to modify solid body names. I tweaked it slightly for your use with iProperties.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt; = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;)

&lt;SPAN&gt;strFindText&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Enter the text to be replaced"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"Description: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic Find-Replace"&lt;/SPAN&gt;, &lt;SPAN&gt;FindText&lt;/SPAN&gt;)
&lt;SPAN&gt;strReplaceText&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Replace With"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic Find-Replace"&lt;/SPAN&gt;, &lt;SPAN&gt;ReplaceText&lt;/SPAN&gt;)

&lt;SPAN&gt;strDescription_New&lt;/SPAN&gt; = &lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt;, &lt;SPAN&gt;strFindText&lt;/SPAN&gt;, &lt;SPAN&gt;strReplaceText&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;) = &lt;SPAN&gt;strDescription_New&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Another one could be&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt; = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;)

&lt;SPAN&gt;strDescription_Array&lt;/SPAN&gt; = &lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt;.&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;"_"&lt;/SPAN&gt;)
&lt;SPAN&gt;'strDescription_ArrayCount = UBound(strDescription_Array)&lt;/SPAN&gt;
&lt;SPAN&gt;strVariable1&lt;/SPAN&gt; = &lt;SPAN&gt;strDescription_Array&lt;/SPAN&gt;(0)

&lt;SPAN&gt;strReplaceText&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Enter Description Field 1"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic Find-Replace"&lt;/SPAN&gt;, &lt;SPAN&gt;"####"&lt;/SPAN&gt;)
&lt;SPAN&gt;strDescription_New&lt;/SPAN&gt; = &lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;strDescription_Original&lt;/SPAN&gt;, &lt;SPAN&gt;strVariable1&lt;/SPAN&gt;, &lt;SPAN&gt;strReplaceText&lt;/SPAN&gt;)
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;) = &lt;SPAN&gt;strDescription_New&lt;/SPAN&gt;

&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Description: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Description"&lt;/SPAN&gt;), &lt;SPAN&gt;"Title"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 06:40:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137176#M37728</guid>
      <dc:creator>william</dc:creator>
      <dc:date>2022-04-29T06:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137222#M37729</link>
      <description>thanks. This helps indeed!&lt;BR /&gt;&lt;BR /&gt;I modified the part number instead of the description.</description>
      <pubDate>Fri, 29 Apr 2022 06:59:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137222#M37729</guid>
      <dc:creator>Jason_Aloot</dc:creator>
      <dc:date>2022-04-29T06:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a portion of the filename using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137225#M37730</link>
      <description>This helps mo too to modify the code. cheers!</description>
      <pubDate>Fri, 29 Apr 2022 07:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-a-portion-of-the-filename-using-ilogic/m-p/11137225#M37730</guid>
      <dc:creator>Jason_Aloot</dc:creator>
      <dc:date>2022-04-29T07:00:20Z</dc:date>
    </item>
  </channel>
</rss>

