<?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: Commandmanager.pick() but for multiple entities in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824392#M132611</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if this is exactly what you are looking for but here is an example of what I am using.&lt;/P&gt;&lt;P&gt;The user selects bodies until he presses the ESC key.&lt;/P&gt;&lt;P&gt;The bodies are placed in a collection. I hope this will help you.&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBodies&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt;
&lt;SPAN&gt;Do&lt;/SPAN&gt;
&lt;SPAN&gt;oBody&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartBodyFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select Bodies. ESC for stop selection"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;oBodies&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oBody&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Loop&lt;/SPAN&gt; &lt;SPAN&gt;While&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 10:44:25 GMT</pubDate>
    <dc:creator>vpeuvion</dc:creator>
    <dc:date>2021-12-15T10:44:25Z</dc:date>
    <item>
      <title>Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10823444#M132595</link>
      <description>&lt;P&gt;Is there a way to have the user select multiple entities with a lasso in a drawing, similar to commandmanager.pick()?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 23:33:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10823444#M132595</guid>
      <dc:creator>mfoster9TD82</dc:creator>
      <dc:date>2021-12-14T23:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824122#M132607</link>
      <description>&lt;P&gt;Yes, it is possible, but there is not some built-in function. You need to implement full selection using events. VBA sample is here&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-60F44C84-D0A6-445B-ADDB-575E3B420DC2" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-60F44C84-D0A6-445B-ADDB-575E3B420DC2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 08:17:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824122#M132607</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-12-15T08:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824392#M132611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if this is exactly what you are looking for but here is an example of what I am using.&lt;/P&gt;&lt;P&gt;The user selects bodies until he presses the ESC key.&lt;/P&gt;&lt;P&gt;The bodies are placed in a collection. I hope this will help you.&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBodies&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt;
&lt;SPAN&gt;Do&lt;/SPAN&gt;
&lt;SPAN&gt;oBody&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartBodyFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select Bodies. ESC for stop selection"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;oBodies&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oBody&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Loop&lt;/SPAN&gt; &lt;SPAN&gt;While&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 10:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824392#M132611</guid>
      <dc:creator>vpeuvion</dc:creator>
      <dc:date>2021-12-15T10:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824954#M132624</link>
      <description>I've thought about doing this, but I have to select 50+ line of like .125" long, so clicking each one is a chore.&lt;BR /&gt;Thanks, though!</description>
      <pubDate>Wed, 15 Dec 2021 15:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824954#M132624</guid>
      <dc:creator>mfoster9TD82</dc:creator>
      <dc:date>2021-12-15T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824981#M132625</link>
      <description>Thanks! I think this is what I'm looking for. I'm guessing this sample is for part entity selection so I'd have to change the selection filters to make it work on a drawing?</description>
      <pubDate>Wed, 15 Dec 2021 15:20:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10824981#M132625</guid>
      <dc:creator>mfoster9TD82</dc:creator>
      <dc:date>2021-12-15T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Commandmanager.pick() but for multiple entities</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10826771#M132666</link>
      <description>&lt;P&gt;This example describes general concept of selection using events. It may work on any selectable entities.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:19:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-but-for-multiple-entities/m-p/10826771#M132666</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-12-16T11:19:17Z</dc:date>
    </item>
  </channel>
</rss>

