<?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 Betreff: VBA / API - how to iterate through all Components of .IPN in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9556773#M62595</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to test your code and I got exactly the rangebox I was looking for. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The initial question is not answered, but now I also know that the question would not have led to my goal.&lt;/P&gt;
&lt;P&gt;..Sometimes you do not know what you are looking for until you find it.&lt;BR /&gt;*deep*&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 06:54:20 GMT</pubDate>
    <dc:creator>fullevent</dc:creator>
    <dc:date>2020-06-03T06:54:20Z</dc:date>
    <item>
      <title>VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9547945#M62585</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to find a way to go through all PublicationComponents of an .ipn to find a specific one by name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following information:&lt;BR /&gt;FullFileName of the .ipn and the&lt;/P&gt;
&lt;P&gt;name of the component (e.g. "00009 - Sechskantschraube:1")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I need is the Rangebox of that Component.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-29 11_00_45-Microsoft Visual Basic for Applications - Default.ivb [break].png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/777201iA0387E1AA38360CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-29 11_00_45-Microsoft Visual Basic for Applications - Default.ivb [break].png" alt="2020-05-29 11_00_45-Microsoft Visual Basic for Applications - Default.ivb [break].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can access the document via the .Parent property, but unfortunately not in the same way from the document to the component.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-29 10_54_38-Autodesk Inventor Professional 2018 - [TestIPN.ipn].png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/777211i650F9EE6A2084385/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-29 10_54_38-Autodesk Inventor Professional 2018 - [TestIPN.ipn].png" alt="2020-05-29 10_54_38-Autodesk Inventor Professional 2018 - [TestIPN.ipn].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="There is no &amp;quot;Publication&amp;quot; property" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/777208i6AF61D37A0D639F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-29 10_58_14-Microsoft Visual Basic for Applications - Default.ivb [break].png" alt="There is no &amp;quot;Publication&amp;quot; property" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;There is no "Publication" property&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...so how can I find the PublicationComponent in an IPN only by knowing the name?&lt;/P&gt;
&lt;P&gt;Is there a way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 09:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9547945#M62585</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-05-29T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554323#M62586</link>
      <description>&lt;P&gt;I have a sample data set, which I can send via pm if desired.&lt;/P&gt;
&lt;P&gt;Unfortunately I still haven't found a possible solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If someone wants to try this and needs the sample data, just let me know.&lt;/P&gt;
&lt;P&gt;Would be great to get some support for this issue. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 09:25:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554323#M62586</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-02T09:25:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554349#M62587</link>
      <description>&lt;P&gt;Try this for start:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationDocument&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&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;AssemblyDocument&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;odoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocuments&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&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: #800000;"&gt;occ&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;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"your name"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for traverse trough all occ:&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;ipn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationDocument&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&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;AssemblyDocument&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;odoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocuments&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&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;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&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;Occurrences&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;Debug&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Print&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 09:43:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554349#M62587</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2020-06-02T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554619#M62588</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first of all thank you for your time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code gets me the componentOccurrence of the iam.&amp;nbsp;That's not quite what I'm trying to do.&lt;/P&gt;
&lt;P&gt;I am trying to find the PublicationOccurrence of an IPN.&lt;/P&gt;
&lt;P&gt;But I can't find a way to go through all PublicationOccurrences of an IPN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expected to do something along those lines.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim occ As PublicationOccurrence

For Each occ In oIPN.PublicationOccurrences 'but it does not exist
Debug.Print occ.Name
Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you have another idea?&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="2020-06-02 13_44_01-Window.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778672iE0368A9246B9E838/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 13_44_01-Window.png" alt="2020-06-02 13_44_01-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:56:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554619#M62588</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-02T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554652#M62589</link>
      <description>&lt;P&gt;Something like this ?&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;ipn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&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;PresentationComponent&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveScene&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TopSceneComponent&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationComponent&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;osub&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SubComponents&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Title"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 12:11:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554652#M62589</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2020-06-02T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554736#M62590</link>
      <description>&lt;P&gt;This is going in the right direction! Thanks a lot for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why I want to find PublicationOccurrence is because I want to check the rangebox.&lt;BR /&gt;It seems the PresentationOccurrence has no rangebox or is there a way to get it by the PresentationOccurrence?&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="2020-06-02 14_42_40-Window.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778686iB6BC08AC4594D98B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 14_42_40-Window.png" alt="2020-06-02 14_42_40-Window.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-02 14_43_12-Window.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778687i4F30355D5620C4F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 14_43_12-Window.png" alt="2020-06-02 14_43_12-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 12:47:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554736#M62590</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-02T12:47:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554822#M62591</link>
      <description>&lt;P&gt;what you want to get from rangebox? position? size?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 13:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9554822#M62591</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2020-06-02T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555020#M62592</link>
      <description>&lt;P&gt;I need the MaxPoint and the MinPoint.. so i need all 6 values.&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="2020-06-02 17_02_06-Window.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778743i46C1F8648232C493/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 17_02_06-Window.png" alt="2020-06-02 17_02_06-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:03:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555020#M62592</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-02T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555052#M62593</link>
      <description>&lt;P&gt;Try something like code below only be careful it will not work for subcomponents type assemblies, in tjhhis scenario you must go deeper to subcomponent of that component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;On&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Error&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Resume&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationDocument&lt;/SPAN&gt;
 &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&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;PresentationComponent&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ipn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveScene&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TopSceneComponent&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationComponent&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;osub&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SubComponents&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SubComponents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;Debug&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Print&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;X&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Y&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Z&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PresentationComponent&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;osub1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SubComponents&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;Debug&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Print&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;osub1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;X&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Y&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;osub1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN style="color: #800000;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Z&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555052#M62593</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2020-06-02T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555172#M62594</link>
      <description>&lt;P&gt;That looks very good. Thank you a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;..confusing.. I'm getting different values... here for comparison:&lt;/P&gt;
&lt;P&gt;Max Points using your Code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-02 17_31_34-Window.png" style="width: 811px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778762i7777FA33A76FA336/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 17_31_34-Window.png" alt="2020-06-02 17_31_34-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MaxPoints of "PublicationOccurrence.Rangebox"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-02 17_28_00-Window.png" style="width: 773px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778764i179392ABA4E02E78/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 17_28_00-Window.png" alt="2020-06-02 17_28_00-Window.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-02 17_28_22-Window.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/778765iB601188AD1CC6F7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-02 17_28_22-Window.png" alt="2020-06-02 17_28_22-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what the difference is between the two. Right now I don't even know which range box is the right one. I will try to find out tomorrow and get back to you.&lt;/P&gt;
&lt;P&gt;Thanks for your support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:47:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9555172#M62594</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-02T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9556773#M62595</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to test your code and I got exactly the rangebox I was looking for. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The initial question is not answered, but now I also know that the question would not have led to my goal.&lt;/P&gt;
&lt;P&gt;..Sometimes you do not know what you are looking for until you find it.&lt;BR /&gt;*deep*&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 06:54:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9556773#M62595</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-06-03T06:54:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9566221#M62596</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to make the script work for IV2016?&lt;/P&gt;&lt;P&gt;Because there is no PresentationComponent or ActiveScene&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 07:13:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9566221#M62596</guid>
      <dc:creator>edv</dc:creator>
      <dc:date>2020-06-08T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: VBA / API - how to iterate through all Components of .IPN</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9566230#M62597</link>
      <description>&lt;P&gt;sorry, i do not have 2016.. also i think it is not possible due fact that it was introduced in 2018.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 07:24:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-api-how-to-iterate-through-all-components-of-ipn/m-p/9566230#M62597</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2020-06-08T07:24:40Z</dc:date>
    </item>
  </channel>
</rss>

