<?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: Inventor iLogic - How to Identify a part feature's type? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/10660471#M299712</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I want to select and chamfer lines of holes of the same diameter. Can you help ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ekran Alıntısı.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/972300i441602D67B8891B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı.PNG" alt="Ekran Alıntısı.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 12:24:29 GMT</pubDate>
    <dc:creator>h.memis</dc:creator>
    <dc:date>2021-10-01T12:24:29Z</dc:date>
    <item>
      <title>Inventor iLogic - How to Identify a part feature's type?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716180#M299708</link>
      <description>&lt;P&gt;Hey everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a small piece of code that will allow the user to select&amp;nbsp;holes and apply various tolerances to them. &amp;nbsp;However, I'd like to exclude any features selected in error. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the user selects a hole and a fillet, I'd like to use a For loop that would process the hole, then identify that selected feature #2 is ineligible by its type, then move on to the next feature in the selection set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after quite a bit of searching, I haven't been able to find a way to take a selected feature and differentiate it by it's type (Hole, fillet, chamfer, extrude, revolve, etc.). &amp;nbsp;Anyone have any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716180#M299708</guid>
      <dc:creator>tdswanson</dc:creator>
      <dc:date>2016-11-29T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor iLogic - How to Identify a part feature's type?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716415#M299709</link>
      <description>&lt;P&gt;Hi tdswanson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick example based on what I found at these links:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/11/do-selection-from-ilogic.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2013/11/do-selection-from-ilogic.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2016/01/keep-selection-between-rule-executions.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2016/01/keep-selection-between-rule-executions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example simply filters out the features that are not holes from the selection set. You would add your code to then run on the selection set of holes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;' Set a reference to the active part document.
Dim oDoc As PartDocument
oDoc = ThisApplication.ActiveDocument
oSet = oDoc.CreateHighlightSet

While True
  Dim oFeature As Object
    oFeature = ThisApplication.CommandManager.Pick(
      SelectionFilterEnum.kPartFeatureFilter, 
      "Select a Hole Feature (press ESC to continue)") 
	
	' If nothing gets selected then we're done	
	If IsNothing(oFeature) Then Exit While
	
	If TypeOf oFeature Is HoleFeature Then 
    	oSet.AddItem(oFeature)
	End If
End While

'your code here
	'example: 
	'message to display count Of selection Set
	MessageBox.Show(oSet.Count &amp;amp; " holes selected.", "iLogic")

'clear the selection set
oSet.Clear&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 18:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716415#M299709</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-11-29T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor iLogic - How to Identify a part feature's type?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716438#M299710</link>
      <description>&lt;P&gt;Something like this should get you going in the right direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;For Each loopFeature In selectedFeatures
	If loopFeature.Type = ObjectTypeEnum.kHoleFeatureObject Then
		'code to process the hole feature
	End If
Next
&lt;/PRE&gt;
&lt;P&gt;I didn't test it with a selection set of features, but it should work for you.&amp;nbsp; Post back to let us know how it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; What Curtis said.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cameron Whetten&lt;BR /&gt;Inventor 2016&lt;BR /&gt;&lt;IMG src="http://download.autodesk.com/us/expert_elite/ADSK_Expert_Elite_Icon_S_Color_Blk.png" width="20%" height="20%" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 17:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716438#M299710</guid>
      <dc:creator>cwhetten</dc:creator>
      <dc:date>2016-11-29T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor iLogic - How to Identify a part feature's type?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716748#M299711</link>
      <description>&lt;P&gt;Thank you guys very much for your help! &amp;nbsp;I've just posted my code in the customization forum. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-add-a-specific-tolerance-to-a-selected-hole/td-p/6716739" target="_blank"&gt;Here's a link.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 19:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/6716748#M299711</guid>
      <dc:creator>tdswanson</dc:creator>
      <dc:date>2016-11-29T19:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor iLogic - How to Identify a part feature's type?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/10660471#M299712</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I want to select and chamfer lines of holes of the same diameter. Can you help ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ekran Alıntısı.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/972300i441602D67B8891B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı.PNG" alt="Ekran Alıntısı.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:24:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/inventor-ilogic-how-to-identify-a-part-feature-s-type/m-p/10660471#M299712</guid>
      <dc:creator>h.memis</dc:creator>
      <dc:date>2021-10-01T12:24:29Z</dc:date>
    </item>
  </channel>
</rss>

