<?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: iLogic AddContentCenterPart in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9970418#M119452</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6349784"&gt;@DFitting&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess you have figured out that it is possible as long as you have the rule in sub assembly. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Dec 2020 02:53:57 GMT</pubDate>
    <dc:creator>JaneFan</dc:creator>
    <dc:date>2020-12-31T02:53:57Z</dc:date>
    <item>
      <title>iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8129833#M86635</link>
      <description>&lt;P&gt;Good evening everyone!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was in the process of writing a bit of code where I can automate placement of content center parts. The code works on an internal rule but when I copy the exact rule to an external one it says it can't find the content center family&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="Untitled.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/522811i6DA6ABAD5A597C1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;NozzlePath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"Tube &amp;amp; Pipe:Fittings:Couplings"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;NozzleFamily&lt;/SPAN&gt; &lt;SPAN&gt;s&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"ASME B16.11 Half Coupling Threaded - Class 3000"&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentB&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"Nozzle1"&lt;/SPAN&gt;, &lt;SPAN&gt;NozzlePath&lt;/SPAN&gt;, &lt;SPAN&gt;NozzleFamily&lt;/SPAN&gt;, {&lt;SPAN&gt;"ND"&lt;/SPAN&gt;, &lt;SPAN&gt;"3"&lt;/SPAN&gt; }, &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;SPAN style="font-family: inherit; font-size: 16px; background-color: #ffffff; color: #666666; white-space: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 21:29:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8129833#M86635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8133288#M86675</link>
      <description>&lt;P&gt;When running in an external rule, you have to explicitly specify the language that you're using for the path and family. To do that, add this line to the top of the rule:&lt;/P&gt;
&lt;PRE&gt;Components.ContentCenterLanguage = "en-US"&lt;/PRE&gt;
&lt;P&gt;More info &lt;A href="http://help.autodesk.com/cloudhelp/2019/ENU/Inventor-iLogic/iLogic_API/html/7d76e6ab-bbb4-446f-8f27-133a9403bae1.htm?_ga=2.181252132.2050541814.1531709246-1672929604.1530889483" target="_blank"&gt;here&lt;/A&gt;.&lt;BR /&gt;It would be a good idea for&amp;nbsp;iLogic to provide a more specific error message in this case. We should be able to do that in a future release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 16:42:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8133288#M86675</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2018-07-16T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8217953#M88029</link>
      <description>&lt;P&gt;I'm&amp;nbsp;having a similar&amp;nbsp;issue with the new&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Ive&amp;nbsp;got it to place the pipe in, but I am only able to place in the content centers default length, ie. 50" long&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as we know, Inventor default content center has the PL parameter set to an expression of&amp;nbsp;[0.001;;;50] which I know is where the 50 is coming from. I feel like I'm&amp;nbsp;missing a step, or maybe it's not possible at the time to place an expressional part such as a pipe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is some test code, it is placing the 1st component but when I uncomment the 2nd one&amp;nbsp;@ 20" it won't place it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"occNameA"&lt;/SPAN&gt;, &lt;SPAN&gt;"Tube &amp;amp; Pipe:Conduits:Pipes"&lt;/SPAN&gt;, &lt;SPAN&gt;"ASME B36.10M Pipe"&lt;/SPAN&gt;, 
	                                        {&lt;SPAN&gt;"Size_Designation"&lt;/SPAN&gt;,&lt;SPAN&gt;"3 - Schedule 40"&lt;/SPAN&gt; ,&lt;SPAN&gt;"PL"&lt;/SPAN&gt;,50}, 
	                                        &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, 
	                                        &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)
											
&lt;SPAN&gt;'Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentB&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;"occNameB"&lt;/SPAN&gt;, &lt;SPAN&gt;"Tube &amp;amp; Pipe:Conduits:Pipes"&lt;/SPAN&gt;, &lt;SPAN&gt;"ASME B36.10M Pipe"&lt;/SPAN&gt;, 
'	                                        {&lt;SPAN&gt;"Size_Designation"&lt;/SPAN&gt;,&lt;SPAN&gt;"3 - Schedule 40"&lt;/SPAN&gt; ,&lt;SPAN&gt;"PL"&lt;/SPAN&gt;,20}, 
'	                                        &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, 
'	                                        &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 21:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8217953#M88029</guid>
      <dc:creator>DFitting</dc:creator>
      <dc:date>2018-08-22T21:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8218052#M88031</link>
      <description>&lt;P&gt;That's right: it's not possible at this time to add a part with a custom size. As it is, the function will add it as a Standard part, with the default size. We should be able to support custom parts with variable sizes in a future release.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 22:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8218052#M88031</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2018-08-22T22:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8221057#M88088</link>
      <description>&lt;P&gt;Is it currently possible to add a sub-assembly into an assembly and then from that top-level assembly run a rule that could use the Components.Add to the sub-assembly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something&amp;nbsp;similar to this maybe?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;openDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;  
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;docFile&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;openDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;      
        &lt;SPAN&gt;FNamePos&lt;/SPAN&gt; = &lt;SPAN&gt;InStrRev&lt;/SPAN&gt;(&lt;SPAN&gt;docFile&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;, &lt;SPAN&gt;"\"&lt;/SPAN&gt;, -1)        
        &lt;SPAN&gt;docFName&lt;/SPAN&gt; = &lt;SPAN&gt;Mid&lt;/SPAN&gt;(&lt;SPAN&gt;docFile&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;, &lt;SPAN&gt;FNamePos&lt;/SPAN&gt; + 1, &lt;SPAN&gt;Len&lt;/SPAN&gt;(&lt;SPAN&gt;docFile&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;) - &lt;SPAN&gt;FNamePos&lt;/SPAN&gt;)

        &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;docFile&lt;/SPAN&gt;.&lt;SPAN&gt;IsModifiable&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;          
			&lt;SPAN&gt;assemblyDoc&lt;/SPAN&gt; = &lt;SPAN&gt;openDoc&lt;/SPAN&gt;  
			&lt;SPAN&gt;assemblyDef&lt;/SPAN&gt; = &lt;SPAN&gt;assemblyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
			&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;docFile&lt;/SPAN&gt;.&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"nozzle 1"&lt;/SPAN&gt;, &lt;SPAN&gt;"C:\Users\Public\2019\PIPES\PIPEC2-40-8.ipt"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;                                                                 position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN&gt;                                                                 appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;		
&lt;SPAN&gt;    Next&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>Thu, 23 Aug 2018 22:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/8221057#M88088</guid>
      <dc:creator>DFitting</dc:creator>
      <dc:date>2018-08-23T22:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9758745#M116136</link>
      <description>&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible in 2021 to change standard parts (profiles, tubes...) with custom sizes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Norman&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:10:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9758745#M116136</guid>
      <dc:creator>N-Roith</dc:creator>
      <dc:date>2020-09-21T11:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9970418#M119452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6349784"&gt;@DFitting&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess you have figured out that it is possible as long as you have the rule in sub assembly. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 02:53:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9970418#M119452</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2020-12-31T02:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9970420#M119453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1252287"&gt;@N-Roith&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to tell that this part hasn't been implemented yet.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 02:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/9970420#M119453</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2020-12-31T02:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddContentCenterPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/11861786#M150797</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This has been implemented within Autodesk Inventor 2024. Please review the Inventor 2024 What's New article&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-A542F6DE-7FFC-4697-9565-0CB04CB8510B" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;For more information regarding how you may leverage&amp;nbsp;the feature, and please review this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-949E4745-6FC2-43F5-99CE-DC7931D433BF" target="_blank" rel="nofollow noopener noreferrer"&gt;page&lt;/A&gt;&lt;SPAN&gt;. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 08:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-addcontentcenterpart/m-p/11861786#M150797</guid>
      <dc:creator>Yijiang.Cai</dc:creator>
      <dc:date>2023-03-31T08:31:01Z</dc:date>
    </item>
  </channel>
</rss>

