<?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: iFeature in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764800#M92891</link>
    <description>&lt;P&gt;Hi Brandeneurope,&lt;/P&gt;&lt;P&gt;thank you for your reply... your makro runs! Is it possible for you to change the script into ilogic-code? I tried .... without result&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 09:33:24 GMT</pubDate>
    <dc:creator>martinhoos</dc:creator>
    <dc:date>2018-02-09T09:33:24Z</dc:date>
    <item>
      <title>iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7762364#M92889</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a iFeature named LongPilot. If i insert this one time the name changed to "LongPilot:1" and the next time to "LongPilot:2". Is it possible to count the quantity of the "LongPilots"? &amp;nbsp;Possible quantitys are only:&amp;nbsp; 0 or 1 or 2 of them. The amount stored in an userparameter named "amount".&lt;/P&gt;&lt;P&gt;One Probleme: If i insert and insert and delete and delete&amp;nbsp;the Longpilots, i can have names like "LongPilot:8" or stuff like this....&lt;/P&gt;&lt;P&gt;Hopefully you can help me...&lt;/P&gt;&lt;P&gt;Regards from Germany.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 14:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7762364#M92889</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-08T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7762456#M92890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again and modified a little!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub features()

Dim a As Application
Set a = ThisApplication
Dim b As PartDocument
Set b = a.ActiveDocument
Dim f As Object ' ExtrudeFeature
'Set c = b.ComponentDefinition.Features

Dim i As Integer
i = 0
For Each f In b.ComponentDefinition.features
If InStr(f.Name, "LongPilot") &amp;gt; 0 Then
i = i + 1
End If

Next

MsgBox i
End Sub&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Feb 2018 14:48:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7762456#M92890</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-08T14:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764800#M92891</link>
      <description>&lt;P&gt;Hi Brandeneurope,&lt;/P&gt;&lt;P&gt;thank you for your reply... your makro runs! Is it possible for you to change the script into ilogic-code? I tried .... without result&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764800#M92891</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-09T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764845#M92892</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following iLogic code to count &lt;STRONG&gt;LongPilot&lt;/STRONG&gt;&amp;nbsp;iFeature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim b As PartDocument
b = ThisApplication.ActiveDocument

Dim i As Integer 

For Each f In b.ComponentDefinition.Features
	If f.Name.StartsWith("LongPilot")Then
		i = i + 1 
	End If
Next

MessageBox.Show("Count of LongPilot is : " &amp;amp; i.ToString, "iLogic")&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is any queries,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves problem, click on "Accept as solution" / give a "Kudo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764845#M92892</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-09T09:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764851#M92893</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub Main()

Dim a As Application
a = ThisApplication
Dim b As PartDocument
b = a.ActiveDocument
Dim f As Object ' ExtrudeFeature
'Set c = b.ComponentDefinition.Features

Dim i As Integer
i = 0
For Each f In b.ComponentDefinition.Features
If InStr(f.Name, "LongPilot") &amp;gt; 0 Then
i = i + 1
End If

Next

MsgBox (i)
End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Feb 2018 10:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764851#M92893</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-09T10:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764893#M92894</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need further assistance....&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 10:18:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7764893#M92894</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-09T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765050#M92895</link>
      <description>&lt;P&gt;Hi Brandeneurope,&lt;/P&gt;&lt;P&gt;yes i need further help.... i thought i couldt handle this by myselfe - but ..... (its to hard to understand)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the idea is: i have a tube which i changed which ilogic (diameter, radius, material&amp;nbsp;....)&amp;nbsp;&lt;/P&gt;&lt;P&gt;sometimes i need the "LongPilot", which has also a diameter. If the Name of the LongPilot is "LongPilot:1" or "LongPilot:2" i can change the diameter with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;iFeature.ChangeRow("LongPilot:1", "16 mm")&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;iFeature.ChangeRow("LongPilot:1", "18 mm")&lt;/PRE&gt;&lt;P&gt;But sometimes the name is, for example like, "LongPilot:5"&amp;nbsp; (delete and stored again) - so i can not identify the Name&amp;nbsp;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this code to place the LongPilot in:&lt;/P&gt;&lt;PRE&gt;Public Sub Main() 

	Dim oPartDoc As PartDocument 
	oPartDoc = ThisApplication.ActiveDocument 

	Dim oPartDef As PartComponentDefinition 
	oPartDef = oPartDoc.ComponentDefinition 

	Dim oWorkPoint As WorkPoint 
	oWorkPoint = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kWorkPointFilter, "Select a point to place iFeature")  
	' Get the selected face to use as input for the iFeature. 
	Dim oFacePlane As WorkPlane 
	oFacePlane = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kWorkPlaneFilter, "Select a Plane to place iFeature") 

	Dim oFeatures As PartFeatures 
	oFeatures = oPartDef.Features 

	' Create an iFeatureDefinition object. 
	Dim oiFeatureDef As iFeatureDefinition 
	oiFeatureDef = oFeatures.iFeatures.CreateiFeatureDefinition("V:\Inventor-2015\1-Inventor\Catalog\KKI\LongPilot.ide")

	' Set the input. 
	Dim oInput As iFeatureInput 
	For Each oInput In oiFeatureDef.iFeatureInputs 
		Dim oParamInput As iFeatureParameterInput 
		
		Select Case oInput.Name 
		Case "Durchmesser" 
		Dim oTubeDia As iFeatureParameterInput 
		oTubeDia = oInput 
		oTubeDia.Expression = durchmesser


		Case "Skizzierebene1" 
		Dim oPlaneInput As iFeatureSketchPlaneInput 
		oPlaneInput = oInput 
		oPlaneInput.PlaneInput = oFacePlane 

		Case "Referenzpunkt1" 

		Dim oRefPoint As iFeatureEntityInput 
		oRefPoint = oInput 
		oRefPoint.Entity = oWorkPoint 

		End Select 
	Next 

	' Create the iFeature. 
	Dim oiFeature As iFeature 
	oiFeature = oFeatures.iFeatures.Add(oiFeatureDef) 

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Long Story short: If i changed the diameter from the tube all&amp;nbsp;longpilots (max. 2)&amp;nbsp;shouldt change also....&amp;nbsp; AND i need the amount of the Longpilots (you gave me the code above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you can give me support to handle the problem.... Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 11:27:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765050#M92895</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-09T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765072#M92896</link>
      <description>So if Diameter pipe change from 12 mm to 16 mm, the Pilot must also change from 12 to 16 mm. am I right?</description>
      <pubDate>Fri, 09 Feb 2018 11:37:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765072#M92896</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-09T11:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765108#M92897</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need number of 16 dia tube and 12 dia tube? Also, wants to change name of LongPilot to respective diameter name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 11:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765108#M92897</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-09T11:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765157#M92898</link>
      <description>&lt;P&gt;yes you are right....&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 12:13:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765157#M92898</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-09T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765174#M92899</link>
      <description>&lt;P&gt;The Diameters are Ø10, Ø12, Ø16 and Ø18&lt;/P&gt;&lt;P&gt;If i changed the Diameter from Ø12 to Ø18&amp;nbsp;of the tube, the Longpilot shouldt also changes to Ø18.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second is, i need the number of inserted LongPilots (0 or 1 or 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 12:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765174#M92899</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-09T12:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765561#M92900</link>
      <description>Could you please upload the feature PilotHole</description>
      <pubDate>Fri, 09 Feb 2018 14:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7765561#M92900</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-09T14:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769830#M92901</link>
      <description>&lt;P&gt;Hello Brandeneurope,&lt;/P&gt;&lt;P&gt;thanks for your reply... here is the iFeature...&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:54:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769830#M92901</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-12T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769837#M92902</link>
      <description>How is your pipe diameter parameter called?</description>
      <pubDate>Mon, 12 Feb 2018 06:59:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769837#M92902</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769849#M92903</link>
      <description>&lt;P&gt;the Diameter of the pipe is called: durchmesser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:06:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769849#M92903</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-12T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769898#M92904</link>
      <description>&lt;PRE&gt;Public Sub Main()
MsgBox 	 (Parameter.Param("durchmesser").expression)
If Parameter.Param("durchmesser").Expression = "10 mm&lt;BR /&gt;Call features("LongPilot", 10 mm)
End If&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If Parameter.Param("durchmesser").Expression = "16 mm" Then &lt;BR /&gt;Call features("LongPilot", &lt;/SPAN&gt;&lt;SPAN&gt;16 mm&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;'etc &lt;/SPAN&gt;
	

End Sub

Public Sub features(Str As String , &lt;SPAN&gt;Dia as string&lt;/SPAN&gt;)

Dim a As Application
a = ThisApplication
Dim b As PartDocument
b = a.ActiveDocument
Dim f As Object ' ExtrudeFeature
'Set c = b.ComponentDefinition.Features

Dim i As Integer
i = 0
For Each f In b.ComponentDefinition.Features
If InStr(f.Name, Str) &amp;gt; 0 Then

iFeature.ChangeRow(f.name, Dia)

i = i + 1
End If

Next
MsgBox (f.name)
MsgBox (i)
End Sub&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;&amp;nbsp;EDIT .....................&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 07:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7769898#M92904</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770127#M92905</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following iLogic code to rename the "LongPilot" iFeature with respect to Diameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub Main()

    Dim oPartDoc As PartDocument
    oPartDoc = ThisApplication.ActiveDocument
          
    Dim oPartDef As PartComponentDefinition
    oPartDef = oPartDoc.ComponentDefinition
    
    Dim oFeatures As PartFeatures
    oFeatures = oPartDef.Features
    
    Dim i10Cnt As Integer
    Dim i12Cnt As Integer
    Dim i16Cnt As Integer
    Dim i18Cnt As Integer
    
    Dim oiFeature As iFeature
    For Each oiFeature In oFeatures.iFeatures
        If InStr(oiFeature.Name, "LongPilot") &amp;gt; 0 Then
            If oiFeature.Parameters.Item(8).Expression = "10 mm" Then
                i10Cnt = i10Cnt + 1
            ElseIf oiFeature.Parameters.Item(8).Expression = "12 mm" Then
                i12Cnt = i12Cnt + 1
            ElseIf oiFeature.Parameters.Item(8).Expression = "16 mm" Then
                i16Cnt = i16Cnt + 1
            ElseIf oiFeature.Parameters.Item(8).Expression = "18 mm" Then
                i18Cnt = i18Cnt + 1
            End If
        End If
    Next
    
    Dim i As Integer
    If i10Cnt &amp;gt; 0 Then
        For i = 1 To i10Cnt
            For Each oiFeature In oFeatures.iFeatures
                If InStr(oiFeature.Name, "LongPilot") &amp;gt; 0 Then
                    If oiFeature.Parameters.Item(8).Expression = "10 mm" Then
                        If oiFeature.Name = "LongPilot Dia 10 mm :" &amp;amp; i - 1 Then
                             GoTo NextIteration10
                        End If
                        If Not InStr(oiFeature.Name, "LongPilot Dia 10 mm :") &amp;gt; 0 Then
                            oiFeature.Name = "LongPilot Dia 10 mm :" &amp;amp; i-1
                            GoTo NextIteration10
                        End If
                    End If
                End If
            Next
NextIteration10:
        Next
    End If
    If i12Cnt &amp;gt; 0 Then
        For i = 1 To i12Cnt
            For Each oiFeature In oFeatures.iFeatures
                If InStr(oiFeature.Name, "LongPilot") &amp;gt; 0 Then
                    If oiFeature.Parameters.Item(8).Expression = "12 mm" Then
                        If oiFeature.Name = "LongPilot Dia 12 mm :" &amp;amp; i -1 Then
                             GoTo NextIteration12
                        End If
                        If Not InStr(oiFeature.Name, "LongPilot Dia 12 mm :") &amp;gt; 0 Then
                            oiFeature.Name = "LongPilot Dia 12 mm :" &amp;amp; i -1
                            GoTo NextIteration12
                        End If
                    End If
                End If
            Next
NextIteration12:
        Next
    End If
    If i16Cnt &amp;gt; 0 Then
        For i = 1 To i16Cnt
            For Each oiFeature In oFeatures.iFeatures
                If InStr(oiFeature.Name, "LongPilot") &amp;gt; 0 Then
                    If oiFeature.Parameters.Item(8).Expression = "16 mm" Then
                        If oiFeature.Name = "LongPilot Dia 16 mm :" &amp;amp; i -1Then
                             GoTo NextIteration16
                        End If
                        If Not InStr(oiFeature.Name, "LongPilot Dia 16 mm :") &amp;gt; 0 Then
                            oiFeature.Name = "LongPilot Dia 16 mm :" &amp;amp; i -1
                            GoTo NextIteration16
                        End If
                    End If
                End If
            Next
NextIteration16:
        Next
    End If
    If i18Cnt &amp;gt; 0 Then
        For i = 1 To i18Cnt
            For Each oiFeature In oFeatures.iFeatures
                If InStr(oiFeature.Name, "LongPilot") &amp;gt; 0 Then
                    If oiFeature.Parameters.Item(8).Expression = "18 mm" Then
                        If oiFeature.Name = "LongPilot Dia 18 mm :" &amp;amp; i - 1 Then
                             GoTo NextIteration18
                        End If
                        If Not InStr(oiFeature.Name, "LongPilot Dia 18 mm :") &amp;gt; 0 Then
                            oiFeature.Name = "LongPilot Dia 18 mm :" &amp;amp; i - 1
                            GoTo NextIteration18
                        End If
                    End If
                End If
            Next
NextIteration18:
        Next
    End If

End Sub&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is any queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves problem, click on "Accept as solution" / give a "Kudo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770127#M92905</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-12T09:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770136#M92906</link>
      <description>Please let me know if you need assistance.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:15:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770136#M92906</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770557#M92907</link>
      <description>&lt;P&gt;Hello Brandeneurope,&lt;/P&gt;&lt;P&gt;Thank you very much ... this is what i needed!&amp;nbsp; Great work.&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770557#M92907</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-12T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: iFeature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770564#M92908</link>
      <description>&lt;P&gt;Hello Chandra,&lt;/P&gt;&lt;P&gt;thank you very much for your help - also your code helps me to solve my Problem.&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ifeature/m-p/7770564#M92908</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-12T12:25:35Z</dc:date>
    </item>
  </channel>
</rss>

