<?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 Place components using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8754903#M76430</link>
    <description>&lt;P&gt;After creating an assembly I'd like two sub-assemblies saving in the same location, one for the new design &amp;amp; one to include any reference parts required.&lt;/P&gt;
&lt;P&gt;The two files have been created using 'save as', but placing these back into the assembly is a challenge - pasting VBA code into iLogic is returning a few errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The forum contains a few examples but not in iLogic ( still searching).&lt;/P&gt;
&lt;P&gt;is there code to 'place grounded at origin'?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ref.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/630212i513F40C4469257A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ref.JPG" alt="ref.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 10:18:55 GMT</pubDate>
    <dc:creator>andrew_canfield</dc:creator>
    <dc:date>2019-04-26T10:18:55Z</dc:date>
    <item>
      <title>Place components using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8754903#M76430</link>
      <description>&lt;P&gt;After creating an assembly I'd like two sub-assemblies saving in the same location, one for the new design &amp;amp; one to include any reference parts required.&lt;/P&gt;
&lt;P&gt;The two files have been created using 'save as', but placing these back into the assembly is a challenge - pasting VBA code into iLogic is returning a few errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The forum contains a few examples but not in iLogic ( still searching).&lt;/P&gt;
&lt;P&gt;is there code to 'place grounded at origin'?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ref.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/630212i513F40C4469257A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ref.JPG" alt="ref.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 10:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8754903#M76430</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2019-04-26T10:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Place components using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8754955#M76431</link>
      <description>&lt;P&gt;Are you looking for something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;asm&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;asm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Path ex. C:\VaultWorkingFolder\Designs\test.iam"&lt;/SPAN&gt;, &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMatrix&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Grounded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;The occurrence gets grounded at origin because CreateMatrix creates an identity matrix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8754955#M76431</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-04-26T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Place components using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755055#M76432</link>
      <description>&lt;P&gt;thankyou - it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i've managed to break it too:&lt;/P&gt;
&lt;P&gt;(added comment in code marked '***** below)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;


&lt;SPAN&gt;xx&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt;
&lt;SPAN&gt;yy&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;without extension&lt;/SPAN&gt;
&lt;SPAN&gt;nn&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;xx&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPA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ef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;nnM&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oOcc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Grounded&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;

'***** everything above this line is good &amp;amp; one sub assembly is placed in the assembly&lt;BR /&gt;'***** below a 2 suffix was added because errors were cropping up &amp;amp; still do. trying to place the second assy (nnR)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;asm2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;asmCompDef2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;asm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc2&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;asmCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;nnR&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oOcc2&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Grounded&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:35:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755055#M76432</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2019-04-26T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Place components using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755236#M76433</link>
      <description>&lt;P&gt;Did some cleaning up in the code. Try this. Works fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;xx&lt;/SPAN&gt;=&lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Path&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;yy&lt;/SPAN&gt;=&lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'without extension&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;nn&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;xx&lt;/SPAN&gt; &amp;amp;&lt;SPAN style="color: #008080;"&gt;"\"&lt;/SPAN&gt;&amp;amp;  &lt;SPAN style="color: #800000;"&gt;yy&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'nn =yy&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;nnM&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;nn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"_M.iam"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;nnR&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;nn&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"_R.iam"&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'''&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;Remove old _M &amp;amp; _R&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;item&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;item&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Contains&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;yy&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;item&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'''&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;----------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'''&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;Remove old _M &amp;amp; _R from inventor session, otherwise new ones can't be saved&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CloseAll&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #808080;"&gt;'''&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;----------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnM&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnM&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Delete old file&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnM&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnR&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnR&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Delete old file&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnR&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oIDMatrix&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Matrix&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnM&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oIDMatrix&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Grounded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc2&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;asmCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;nnR&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oIDMatrix&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oOcc2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Grounded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:45:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755236#M76433</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-04-26T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Place components using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755457#M76434</link>
      <description>&lt;P&gt;thankyou&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 13:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-components-using-ilogic/m-p/8755457#M76434</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2019-04-26T13:41:00Z</dc:date>
    </item>
  </channel>
</rss>

