<?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: iLogic counts the number extrusions of a specific feature in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10227590#M123178</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this can be achived by counting the profiles in the extrude feature "SL-xxx". Of course, if two or more profiles overlap and Inventor recognizes them as one or if one slot consists of two or more profiles, this method will fail. Also if there are different slot types in one extrusion, but they should be separate counted, this is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another idea is to use 1 Slot per extrusion and create a sketch driven pattern.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Apr 2021 15:26:17 GMT</pubDate>
    <dc:creator>Ralf_Krieg</dc:creator>
    <dc:date>2021-04-10T15:26:17Z</dc:date>
    <item>
      <title>iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10221422#M123105</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem&lt;/STRONG&gt;:&lt;BR /&gt;I am trying to figure out a way how to automate a text in drawing to count the number of feature extrusions just like Hole Table does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cause of the problem&lt;/STRONG&gt;:&lt;BR /&gt;Very often we have a part that has slots and this slots number varies.&lt;BR /&gt;I always count manually those slots and type it as a “static” txt in the drawing and when someone else works later on this part it is very often that we forget to update that static text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My idea for a solution&lt;/STRONG&gt;:&lt;BR /&gt;An iLogic rule in the part. This rule counts the number of extrusions that a feature with a specific name creates and writes it down in User Parameters.&lt;BR /&gt;For example: &amp;nbsp;“Slots1” (extrusion feature) has extruded 25 slots. The code writes in the User Parameters “Extrusion_Slots1” = 25&lt;BR /&gt;If “Slots1” for whatever reason after a change extrudes only 5 slots now then the parameter “Extrusion_Slots1” in the User Parameters should get automatically updated.&lt;BR /&gt;Then in the drawing I can add text and select User Parameters and add the “Extrusion_Slots1” as a variable that gets me the automatically updated value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The question&lt;/STRONG&gt; is how I get Inventor to count the number of extrusions that a specific feature does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 11:11:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10221422#M123105</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-08T11:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10223549#M123128</link>
      <description>&lt;P&gt;That's simple enough to achieve. I have assumed this is in a part. Each extrusion name will need to be unique so something like SL1-1, SL1-2 etc SL1 to identify the slot size and 1,2,3 to uniquely identify each one .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quicky modified it from this post.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/td-p/8659430" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-forum/ilogic-feature-counting/td-p/8659430&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you place this rule in the document and set event trigger to on Save or model parameter change.&lt;/P&gt;&lt;P&gt;The down side is you need to rename the extrusion name in the browser.&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;PartDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ExtrusionList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;

&lt;SPAN&gt;' If a feature is Active (not suppressed), it is added the FeatureList array&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oExtrusion&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;ExtrudeFeatures&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oExtrusion&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;.&lt;SPAN&gt;Contains&lt;/SPAN&gt;(&lt;SPAN&gt;"SL1"&lt;/SPAN&gt;)  &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;IsActive&lt;/SPAN&gt;(&lt;SPAN&gt;oExtrusion&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
		   &lt;SPAN&gt;ExtrusionList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oExtrusion&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;' Count the number of items in the FeatureList array&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FeatureCount&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt;
&lt;SPAN&gt;FeatureCount&lt;/SPAN&gt; = &lt;SPAN&gt;ExtrusionList&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt;

&lt;SPAN&gt;'Turn off these message boxes if not needed.&lt;/SPAN&gt;
&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;FeatureCount&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
&lt;SPAN&gt;d0&lt;/SPAN&gt; = &lt;SPAN&gt;InputListBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Prompt"&lt;/SPAN&gt;, &lt;SPAN&gt;ExtrusionList&lt;/SPAN&gt;, &lt;SPAN&gt;d0&lt;/SPAN&gt;, &lt;SPAN&gt;Title&lt;/SPAN&gt; := &lt;SPAN&gt;"Title"&lt;/SPAN&gt;, &lt;SPAN&gt;ListName&lt;/SPAN&gt; := &lt;SPAN&gt;"List"&lt;/SPAN&gt;)

&lt;SPAN&gt;'Places the FeatureCount value into the User parameter&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion_Slots1"&lt;/SPAN&gt;) = &lt;SPAN&gt;FeatureCount&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 23:44:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10223549#M123128</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-04-08T23:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10223967#M123135</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works but unfortunately not the way I imagined it.&lt;/P&gt;&lt;P&gt;It counts the number of feature names that contain “SL1” in them and not how many slots the feature creates.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So that means I would have to extrude each slot with a unique feature name that contains SL1 in it in order for this code to work. I could work with this but when I have to create individually more than 20 slots that way, and in many parts, this quickly becomes not a productive workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn’t there anyway to make Inventor to count how many geometries a single feature creates like the hole feature does?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 05:30:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10223967#M123135</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-09T05:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10224852#M123155</link>
      <description>&lt;P&gt;There may be but I have not use this method. Can you please provide a sample part with a number of slots as features. Provide also a few screen shots of the browser tree in case forum viewers have not got your INV release. This way other users can see the document your using (sheetmetal/part) the feature method used in slot creation etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10224852#M123155</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-04-09T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10227590#M123178</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this can be achived by counting the profiles in the extrude feature "SL-xxx". Of course, if two or more profiles overlap and Inventor recognizes them as one or if one slot consists of two or more profiles, this method will fail. Also if there are different slot types in one extrusion, but they should be separate counted, this is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another idea is to use 1 Slot per extrusion and create a sketch driven pattern.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 15:26:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10227590#M123178</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-04-10T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230304#M123203</link>
      <description>&lt;P&gt;the attached files were created with Inventor 2021.&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="Slotted_Part01_P1.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/905184i8357926DEC3342A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Slotted_Part01_P1.JPG" alt="Slotted_Part01_P1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Slotted_Part01_P2.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/905185iCDFE1ACA4A1BD03A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Slotted_Part01_P2.JPG" alt="Slotted_Part01_P2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 05:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230304#M123203</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-12T05:54:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230308#M123204</link>
      <description>&lt;P&gt;I don't mind working with restrictions like specificpProfile or sizes as long as it works but the question is,&lt;/P&gt;&lt;P&gt;how do you make Inventor to count any geometry/extrussions of a feature at all?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 05:59:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230308#M123204</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-12T05:59:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230727#M123214</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By counting the profiles used for create this extrusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim oDoc As PartDocument = ThisApplication.ActiveDocument
Dim oUserParams As UserParameters = oDoc.ComponentDefinition.Parameters.UserParameters 
Dim iCount As Integer
Dim sCount As String

' If a feature is Active (not suppressed), it is added the FeatureList array
For Each oExtrusion As ExtrudeFeature In oDoc.ComponentDefinition.Features.ExtrudeFeatures
	If oExtrusion.Name.StartsWith("SL") Then
		If Feature.IsActive(oExtrusion.Name) Then
		   sCount = Mid(oExtrusion.Name, 3)
		   If sCount.Length = 1 Then
			   sCount = "0" &amp;amp; sCount
		   End If
		   MsgBox("Number_of_Slots_" &amp;amp; sCount &amp;amp; ": " &amp;amp; oExtrusion.Definition.Profile.Count)
			Try
		   		Parameter("Number_of_Slots_" &amp;amp; sCount)= oExtrusion.Definition.Profile.Count
			Catch
				oUserParams.AddByExpression ("Number_of_Slots_" &amp;amp; sCount, oExtrusion.Definition.Profile.Count, UnitsTypeEnum.kUnitlessUnits)
			End Try
		End If
	End If
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 09:24:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230727#M123214</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-04-12T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230966#M123225</link>
      <description>It works!!! &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;Thank you and thank you everyone who tried to help with this. This saves me so much time and unnesasery frustrations. You guys are great!&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10230966#M123225</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-12T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10231087#M123228</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there's more work to do. What about patterns of this extrusion features? Not tested it, but I think this is not recognized by our code. Can the count of extrusion features raise over "SL99"? The code assumes til now there are myx 2 digits. Maybe there are more situations where result isn't correct.&lt;/P&gt;&lt;P&gt;For instance, I tried to create a simple keyhole slot (1x circle, 1x long slot) and this is recognized as 3 slots. I had to cut the not needed inner sketch lines or set it to construction line, to get correct value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 12:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10231087#M123228</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-04-12T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10233486#M123250</link>
      <description>&lt;P&gt;I have experimented with this and as you can see the code works just fine , it counts over 99 and it counts diffrent shapes and ingular objects and pattern objects alike.&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="Slotted_Part01_P3_1.JPG" style="width: 902px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/905633i1A72CB936FFCB500/image-size/large?v=v2&amp;amp;px=999" role="button" title="Slotted_Part01_P3_1.JPG" alt="Slotted_Part01_P3_1.JPG" /&gt;&lt;/span&gt;&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="Slotted_Part01_P3.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/905632i5969EBC35B55F20B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Slotted_Part01_P3.JPG" alt="Slotted_Part01_P3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The only thing is, I tried to use this same code to count holes and it doesn't work for some reason. It seams to me I am missing something for the HoleFeature definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 07:11:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10233486#M123250</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-13T07:11:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10235453#M123286</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; don't mean more than 99 slots per feature, but more than 99 features. If there is an feature "SL100", the code fails. Just want to say, don't except it's perfect.&lt;/P&gt;&lt;P&gt;For hole features you could try to count the holecenterpoints. If such a center point is positioned out of your volume and you drill "a hole in the air" this hole would even be counted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim oDoc As PartDocument = ThisApplication.ActiveDocument
Dim oUserParams As UserParameters = oDoc.ComponentDefinition.Parameters.UserParameters 
Dim iCount As Integer
Dim sCount As String

' If a feature is Active (not suppressed), it is added the FeatureList array
For Each oExtrusion As ExtrudeFeature In oDoc.ComponentDefinition.Features.ExtrudeFeatures
	If oExtrusion.Name.StartsWith("SL") Then
		If Feature.IsActive(oExtrusion.Name) Then
		   sCount = Mid(oExtrusion.Name, 3)
		   If sCount.Length = 1 Then
			   sCount = "0" &amp;amp; sCount
		   End If
		   MsgBox("Number_of_Slots_" &amp;amp; sCount &amp;amp; ": " &amp;amp; oExtrusion.Definition.Profile.Count)
			Try
		   		Parameter("Number_of_Slots_" &amp;amp; sCount)= oExtrusion.Definition.Profile.Count
			Catch
				oUserParams.AddByExpression ("Number_of_Slots_" &amp;amp; sCount, oExtrusion.Definition.Profile.Count, UnitsTypeEnum.kUnitlessUnits)
			End Try
		End If
	End If
Next


For Each oHole As HoleFeature In oDoc.ComponentDefinition.Features.HoleFeatures 
	If oHole.Name.StartsWith("Hole_") Then
		If Feature.IsActive(oHole.Name) Then
		   sCount = Mid(oHole.Name, 6)
		   If sCount.Length = 1 Then
			   sCount = "0" &amp;amp; sCount
		   End If
		   MsgBox("Number_of_Holes_" &amp;amp; sCount &amp;amp; ": " &amp;amp; oHole.HoleCenterPoints.Count)
			Try
		   		Parameter("Number_of_Holes_" &amp;amp; sCount)= oHole.HoleCenterPoints .Count
			Catch
				oUserParams.AddByExpression ("Number_of_Holes_" &amp;amp; sCount, oHole.HoleCenterPoints.Count, UnitsTypeEnum.kUnitlessUnits)
			End Try
		End If
	End If
Next

&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10235453#M123286</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-04-13T19:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10236506#M123294</link>
      <description>&lt;P&gt;krieg, thank you very much!&lt;/P&gt;&lt;P&gt;Your code simply works for all the situations that I have.&lt;/P&gt;&lt;P&gt;I don't think that I will reach more than 99 features but if I will, then I can always adjust the "SL" to something else and then have another 99 variations avaliable.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 05:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10236506#M123294</guid>
      <dc:creator>Alex.Shechter</dc:creator>
      <dc:date>2021-04-14T05:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10533279#M127447</link>
      <description>&lt;P&gt;Can iLogic tell if the extrude is a cut/join or will it only count extrude in general?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 07:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10533279#M127447</guid>
      <dc:creator>SharkDesign</dc:creator>
      <dc:date>2021-08-10T07:32:45Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic counts the number extrusions of a specific feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10536258#M127518</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iLogic can tell you the kind of operation. Use the ExtrudeDefinition.Operation Property&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExtrudeFeature.Definition.Operation = PartFeatureOperationEnum.kCutOperation
ExtrudeFeature.Definition.Operation = PartFeatureOperationEnum.kIntersectOperation 
ExtrudeFeature.Definition.Operation = PartFeatureOperationEnum.kJoinOperation 
ExtrudeFeature.Definition.Operation = PartFeatureOperationEnum.kNewBodyOperation 
ExtrudeFeature.Definition.Operation = PartFeatureOperationEnum.kSurfaceOperation &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 06:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-counts-the-number-extrusions-of-a-specific-feature/m-p/10536258#M127518</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-08-11T06:19:40Z</dc:date>
    </item>
  </channel>
</rss>

