<?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 Rename only circular pattern solids in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11233802#M35945</link>
    <description>&lt;P&gt;How can i rename only circular pattern solids?&lt;/P&gt;&lt;P&gt;for example, Circular pattern1 solid names from Part01...Part10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manumarjanen_0-1655205572403.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1079610iDFD40EE855A7D6A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manumarjanen_0-1655205572403.png" alt="manumarjanen_0-1655205572403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 11:20:53 GMT</pubDate>
    <dc:creator>manu.marjanen</dc:creator>
    <dc:date>2022-06-14T11:20:53Z</dc:date>
    <item>
      <title>Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11233802#M35945</link>
      <description>&lt;P&gt;How can i rename only circular pattern solids?&lt;/P&gt;&lt;P&gt;for example, Circular pattern1 solid names from Part01...Part10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manumarjanen_0-1655205572403.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1079610iDFD40EE855A7D6A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manumarjanen_0-1655205572403.png" alt="manumarjanen_0-1655205572403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11233802#M35945</guid>
      <dc:creator>manu.marjanen</dc:creator>
      <dc:date>2022-06-14T11:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11233885#M35946</link>
      <description>&lt;P&gt;This renames newly created SurfaceBodies except the first one (source body)&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim part As PartDocument = ThisDoc.Document
Dim circPattern = part.ComponentDefinition.Features.CircularPatternFeatures(1)
Dim i As Integer = 1
For Each surfBody As SurfaceBody In circPattern.SurfaceBodies
	surfBody.Name = String.Format("Part_{0:0#}", i)
	i += 1
Next&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11233885#M35946</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-06-14T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11234087#M35947</link>
      <description>&lt;P&gt;Almost good.&lt;BR /&gt;Now, indeed, the first part does not get a new name.&lt;/P&gt;&lt;P&gt;Does anyone get the modified code so that the name of all the parts changes?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manumarjanen_0-1655212700238.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1079653i35A21A2D6D83C16F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manumarjanen_0-1655212700238.png" alt="manumarjanen_0-1655212700238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11234087#M35947</guid>
      <dc:creator>manu.marjanen</dc:creator>
      <dc:date>2022-06-14T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11234709#M35948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104556"&gt;@Michael.Navara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this update to&amp;nbsp;Michael.Navara's example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt; = &lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;CircularPatternFeatures&lt;/SPAN&gt;(1)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
&lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Part_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;surfBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;
	&lt;SPAN&gt;i&lt;/SPAN&gt; += 1
	&lt;SPAN&gt;surfBody&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Part_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:35:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11234709#M35948</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2022-06-14T17:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235663#M35949</link>
      <description>&lt;P&gt;The names of the first circular pattern change correctly.&lt;BR /&gt;But the name of the first part of the second circular pattern does not change.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manumarjanen_1-1655263416764.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1079922i76DE7E878CD2F680/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manumarjanen_1-1655263416764.png" alt="manumarjanen_1-1655263416764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 03:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235663#M35949</guid>
      <dc:creator>manu.marjanen</dc:creator>
      <dc:date>2022-06-15T03:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235740#M35950</link>
      <description>&lt;P&gt;To add to the guys work this is why only the first pattern was targeted where (1) is the first in the&amp;nbsp;&lt;SPAN&gt;CircularPatternFeatures collection.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt; = &lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;CircularPatternFeatures&lt;/SPAN&gt;(1)&lt;/PRE&gt;&lt;P&gt;Here it is for all patterns just loop through the&amp;nbsp;&lt;SPAN&gt;CircularPatternFeatures collection&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CircularPatternFeature&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;CircularPatternFeatures&lt;/SPAN&gt;
	&lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Part_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;surfBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;
		&lt;SPAN&gt;i&lt;/SPAN&gt; += 1
		&lt;SPAN&gt;surfBody&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Part_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
	&lt;SPAN&gt;Next&lt;/SPAN&gt; 
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 04:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235740#M35950</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-15T04:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235877#M35951</link>
      <description>&lt;P&gt;I want to rename different circular patterns with different names,&amp;nbsp;&amp;nbsp;this does not work for it.&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;Circular pattern 1: Plate_1_01 ... Plate_1_10 (10 plates)&lt;/P&gt;&lt;P&gt;Circular pattern 2: Plate_2_01 ... Plate_2_05 (5 plates)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you edit the code to make it work this way?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:25:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11235877#M35951</guid>
      <dc:creator>manu.marjanen</dc:creator>
      <dc:date>2022-06-15T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rename only circular pattern solids</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11237014#M35952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8645322"&gt;@manu.marjanen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give this example a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;j&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CircularPatternFeature&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;CircularPatternFeatures&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
	&lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Plate_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;j&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;surfBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;circPattern&lt;/SPAN&gt;.&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;
		&lt;SPAN&gt;i&lt;/SPAN&gt; += 1
		&lt;SPAN&gt;surfBody&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"Plate_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;j&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"_{0:0#}"&lt;/SPAN&gt;, &lt;SPAN&gt;i&lt;/SPAN&gt;)
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;j&lt;/SPAN&gt; += 1
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-only-circular-pattern-solids/m-p/11237014#M35952</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2022-06-15T14:40:07Z</dc:date>
    </item>
  </channel>
</rss>

