<?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: Selected Object Type in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707695#M143177</link>
    <description>&lt;P&gt;I am not sure of the syntacs in C#, but in vb.net I do something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If typeof JustSelectedEntity(1) is some_type then&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2010 16:48:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-02T16:48:01Z</dc:date>
    <item>
      <title>Selected Object Type</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707643#M143176</link>
      <description>&lt;P&gt;Working from the Selection (Simple)&amp;nbsp;sample, how do you figure out the object type from the selected object array (oSelectedEnts)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've implemented the same selection mechanism in C#, but I just get an array of Objects back and have no way of determining what they are since they are returned as generic "System.__ComObject" types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 15:56:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707643#M143176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-02T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Object Type</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707695#M143177</link>
      <description>&lt;P&gt;I am not sure of the syntacs in C#, but in vb.net I do something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If typeof JustSelectedEntity(1) is some_type then&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 16:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707695#M143177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-02T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Object Type</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707817#M143178</link>
      <description>&lt;P&gt;I was hoping for an easier way, but if this is the case my problem is I don't even know what objects to try a cast to.&amp;nbsp; I'm trying to select a client feature with client graphics, so how would I know what object type that would return?&amp;nbsp; So far I've tried ClientFeature and ClientFeatureDefinition and neither have worked.&amp;nbsp; I would hate to have to do this kind of guess work every time I implement selection for a different object type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 19:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2707817#M143178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-02T19:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Object Type</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2708837#M143179</link>
      <description>&lt;P&gt;The easiest way I have found is to set up a simple selection test in VBA and with a watch you will be able to see what type of object it is.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2010 23:40:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2708837#M143179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-05T23:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Object Type</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2727059#M143180</link>
      <description>&lt;P&gt;In C#, the watch reports a COM object type so that doesn't help.&lt;/P&gt;&lt;P&gt;I ended up writing my own selection mechanism and using the mouse listeners to&amp;nbsp; run it.&amp;nbsp; I needed more custom selection features for the client graphics regardless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input though.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 13:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selected-object-type/m-p/2727059#M143180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-26T13:14:16Z</dc:date>
    </item>
  </channel>
</rss>

