<?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 content center part use ilogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111048#M180243</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i am reading from your request is to have a hole in a part, then in an assembly place and constrain a fastener from the content center. then when the hole is updated the fastener would change to reflect the hole diameter change?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2026 19:54:26 GMT</pubDate>
    <dc:creator>humistonandrew</dc:creator>
    <dc:date>2026-04-29T19:54:26Z</dc:date>
    <item>
      <title>Replace content center part use ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14083403#M180039</link>
      <description>&lt;P&gt;i want to replace part in assembly from content center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: i make hole parameter in assembly, i use bolt from content center.&lt;/P&gt;&lt;P&gt;when i change hole size my bolt will be change automatic.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 09:09:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14083403#M180039</guid>
      <dc:creator>priteshkumarvinchhi</dc:creator>
      <dc:date>2026-04-09T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace content center part use ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111048#M180243</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i am reading from your request is to have a hole in a part, then in an assembly place and constrain a fastener from the content center. then when the hole is updated the fastener would change to reflect the hole diameter change?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 19:54:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111048#M180243</guid>
      <dc:creator>humistonandrew</dc:creator>
      <dc:date>2026-04-29T19:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace content center part use ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111144#M180245</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16795798"&gt;@priteshkumarvinchhi&lt;/a&gt;, welcome to the forum.&lt;BR /&gt;&lt;BR /&gt;You can do this using the&amp;nbsp;AddContentCenterPart function. Hope this helps, Curtis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Rename the CC part in the assembly browser, in order to stabilize the component name&lt;/LI&gt;
&lt;LI&gt;Create a new iLogic rule ( if needed)&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;In the Model tree withing the rule editor, located the CC part and right click on it as shown&lt;/LI&gt;
&lt;LI&gt;Select "Capture Current State Components.Add ...."
&lt;UL&gt;
&lt;LI&gt;I've selected the one using Designation in this example&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_W_1-1777496333365.png" style="width: 790px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1636896i90F5FFD746F1C112/image-dimensions/790x304?v=v2" width="790" height="304" role="button" title="Curtis_W_1-1777496333365.png" alt="Curtis_W_1-1777496333365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It might take a bit as iLogic reads the CC database tables, but eventually it will give you the code to place the CC part
&lt;UL&gt;
&lt;LI&gt;Something like this:&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Hex_Nut&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"Hex Nut"&lt;/SPAN&gt;, &lt;SPAN&gt;"Fasteners:Nuts:Hex"&lt;/SPAN&gt;, &lt;SPAN&gt;"Heavy Hex Nut - Inch"&lt;/SPAN&gt;,&lt;SPAN&gt;"1/4 - 20"&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;You can then use that to create logic such as this where the user selects from a list, and the selected input is used in the&amp;nbsp;&lt;SPAN&gt;AddContentCenterPart function&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oList&lt;/SPAN&gt; = &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;(){&lt;SPAN&gt;"1/4 - 20"&lt;/SPAN&gt;, &lt;SPAN&gt;"3/4 - 10"&lt;/SPAN&gt;}
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;oInput&lt;/SPAN&gt; &lt;/FONT&gt;&lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;InputListBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Prompt"&lt;/SPAN&gt;, &lt;SPAN&gt;oList&lt;/SPAN&gt;, &lt;SPAN&gt;oList&lt;/SPAN&gt;(0), &lt;SPAN&gt;Title&lt;/SPAN&gt; := &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;ListName&lt;/SPAN&gt; := &lt;SPAN&gt;"List"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Hex_Nut&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"Hex Nut"&lt;/SPAN&gt;, &lt;SPAN&gt;"Fasteners:Nuts:Hex"&lt;/SPAN&gt;, &lt;SPAN&gt;"Heavy Hex Nut - Inch"&lt;/SPAN&gt;, &lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;oInput&lt;/SPAN&gt;&lt;/FONT&gt;)&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 29 Apr 2026 21:10:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111144#M180245</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2026-04-29T21:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace content center part use ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111152#M180247</link>
      <description>&lt;P&gt;Or something like this if based on the hole size as&amp;nbsp;humistonandrew&amp;nbsp;suggested.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;holeDia&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Enter Diameter"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, 0.266)

&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bottom Board"&lt;/SPAN&gt;, &lt;SPAN&gt;"Hole1Diameter"&lt;/SPAN&gt;) = &lt;SPAN&gt;holeDia&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Hex_Nut&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ManagedComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;holeDia&lt;/SPAN&gt; &amp;gt; 0.75 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Hex_Nut&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"Hex Nut"&lt;/SPAN&gt;, &lt;SPAN&gt;"Fasteners:Nuts:Hex"&lt;/SPAN&gt;, &lt;SPAN&gt;"Heavy Hex Nut - Inch"&lt;/SPAN&gt;, &lt;SPAN&gt;"3/4 - 10"&lt;/SPAN&gt;)
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;Hex_Nut&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"Hex Nut"&lt;/SPAN&gt;, &lt;SPAN&gt;"Fasteners:Nuts:Hex"&lt;/SPAN&gt;, &lt;SPAN&gt;"Heavy Hex Nut - Inch"&lt;/SPAN&gt;, &lt;SPAN&gt;"1/4 - 20"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 21:17:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-content-center-part-use-ilogic/m-p/14111152#M180247</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2026-04-29T21:17:03Z</dc:date>
    </item>
  </channel>
</rss>

