<?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: Find rowvalue of a specific column in iPart table with iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666128#M60131</link>
    <description>&lt;P&gt;It works! But i need one last thing.&lt;/P&gt;&lt;P&gt;Instead of picking manually by mouseclick i want to assign the part automatically (since this will be a automated model). It's always the same part&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i guess i need to change the "Pick" part?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "oTypeKast")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 11:29:08 GMT</pubDate>
    <dc:creator>Daan_M</dc:creator>
    <dc:date>2020-07-31T11:29:08Z</dc:date>
    <item>
      <title>Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666025#M60127</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the title suggests im looking to extract the value of a certain column of an iPart inside my assembly.&lt;/P&gt;&lt;P&gt;I have 5 iParts inside my assembly, &lt;U&gt;i just need the column value of the active row of one of the five iParts&lt;/U&gt;, I see snippet;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iPart&lt;/SPAN&gt;.&lt;SPAN&gt;CurrentRowValue&lt;/SPAN&gt;(&lt;SPAN&gt;"columnName"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me i need to to assign this to a certain iPart, because now it is just a general piece of code. i'm basically looking for something like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iPart.CurrentRowValue('iPartname, "columnName")&lt;/LI-CODE&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, 31 Jul 2020 10:11:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666025#M60127</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2020-07-31T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666055#M60128</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8021187"&gt;@Daan_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the iPartMember object in your occurrence definition like this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;'Get the Component Occurrence in your Assembly&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Pick iPart."&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsiPartMember&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Just a check&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Row&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"columnName"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'The row value&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Not an iPart-member"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 10:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666055#M60128</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-07-31T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666073#M60129</link>
      <description>&lt;P&gt;Hey Jhoel!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, i'm sure this is a fitting solution. However i used ComponentOccurence earlier in my code to suppress and unsupress some iParts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oAsmDoc As AssemblyDocument
oAsmDoc = ThisApplication.ActiveDocument
Dim oOcc As ComponentOccurrence

For Each oOcc In oAsmDoc.ComponentDefinition.Occurrences

If oOcc.Name.StartsWith("occ")Then
oOcc.Suppress
End If

'etc etc unsupress&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get the error;&amp;nbsp;"Rule Compile Errors in WormwielMotor3D, in wormwielconfiguratorv1.iam&lt;/P&gt;&lt;P&gt;Error on Line 92 : Local variable 'oOcc' is already declared in the current block."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which makes sense but i'm too much of a noob to figure out how to solve this haha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 10:51:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666073#M60129</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2020-07-31T10:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666080#M60130</link>
      <description>&lt;P&gt;oOcc is just a variable name set by you. You can call it anything &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SomethingElseThanoOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Pick iPart."&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SomethingElseThanoOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsiPartMember&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Just a check&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;SomethingElseThanoOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Row&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"columnName"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'The row value&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Not an iPart-member"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 10:55:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666080#M60130</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-07-31T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666128#M60131</link>
      <description>&lt;P&gt;It works! But i need one last thing.&lt;/P&gt;&lt;P&gt;Instead of picking manually by mouseclick i want to assign the part automatically (since this will be a automated model). It's always the same part&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i guess i need to change the "Pick" part?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "oTypeKast")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 11:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666128#M60131</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2020-07-31T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666135#M60132</link>
      <description>&lt;P&gt;Adjusted it a bit to the code below that worked, thanks!&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim iPartOcc As ComponentOccurrence
For Each iPartOcc In oAsmDoc.ComponentDefinition.Occurrences
If iPartOcc.IsiPartMember And iPartOcc.Name.Equals("oTypeKast")
Dim oMember As iPartMember = iPartOcc.Definition.iPartMember
MsgBox(oMember.Row.Item("AsDiameterKast").Value) 'The row value
Else
	MsgBox("Not an iPart-member")
End If
Next&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 11:35:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666135#M60132</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2020-07-31T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666147#M60133</link>
      <description>&lt;P&gt;I think the easiest way in your case would be to use oAsm.ComponentDefinition.ItemByName.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iPartOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"NameOfTheIpart"&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iPartOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsiPartMember&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Just a check&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;iPartOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;iPartMember&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Row&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"columnName"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'The row value&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Not an iPart-member"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Just make sure you have manually renamed the iPart-occurrence in the assembly tree. Otherwise the name will change whenever you change the iPart-row &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can of course name it whatever you want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nameIpart.PNG" style="width: 155px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/801836iC150715335FE69E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="nameIpart.PNG" alt="nameIpart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: I see you fixed it yourself while i wrote this (Y)&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 11:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666147#M60133</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-07-31T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666386#M60134</link>
      <description>&lt;P&gt;It works fine on my laptop. I pack n go the assembly to a desktop PC and when i run the rule i get the following error message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp;amp; msgData)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at Inventor.iPartMember.get_Row()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at ThisRule.Main()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is caused by the code i added that you suggested, also the slightly adjusted solution i gave gives the same error, any idea what causes this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your latest code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim iPartOcc As ComponentOccurrence = oAsmDoc.ComponentDefinition.Occurrences.ItemByName("NameOfTheIpart")

If iPartOcc.IsiPartMember 'Just a check
Dim oMember As iPartMember = iPartOcc.Definition.iPartMember
MsgBox(oMember.Row.Item("columnName").Value) 'The row value
Else
	MsgBox("Not an iPart-member")
End If&lt;/LI-CODE&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;My slightly adjusted version since i already used Occurences earlier;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'If oOcc.Name = "oTypeKast" Then
'Dim oMember As iPartMember = oOcc.Definition.iPartMember
'oND = oMember.Row.Item("AsDiameterKast").Value'The row value
'End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT; I think it might have to do with the Office version of Excel, the Embedded file is a 1997-2003 workbook. (on both my laptop and desktop i use Inventor 2021)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 14:10:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9666386#M60134</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2020-07-31T14:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find rowvalue of a specific column in iPart table with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9669188#M60135</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8021187"&gt;@Daan_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code i posted:&lt;/P&gt;&lt;PRE&gt;Dim iPartOcc As ComponentOccurrence = oAsmDoc.ComponentDefinition.Occurrences.ItemByName("NameOfTheIpart")

If iPartOcc.IsiPartMember 'Just a check
Dim oMember As iPartMember = iPartOcc.Definition.iPartMember
MsgBox(oMember.Row.Item("columnName").Value) 'The row value
Else
	MsgBox("Not an iPart-member")
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You'll have to change "NameOfTheIpart" to the actual name of the ipart in your assembly-tree&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 07:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/find-rowvalue-of-a-specific-column-in-ipart-table-with-ilogic/m-p/9669188#M60135</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-08-03T07:18:22Z</dc:date>
    </item>
  </channel>
</rss>

