<?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 error when switching iAssemblyTableRows to c# application in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-switching-iassemblytablerows-to-c-application/m-p/11930369#M152029</link>
    <description>&lt;P&gt;Hi all&lt;BR /&gt;I am writing an application in Visual Studio in C#.&lt;BR /&gt;An error occurs when trying to modify iAssembly.&lt;BR /&gt;At the same time, a similar code in VBA works without errors.&lt;/P&gt;&lt;P&gt;Please tell me if anyone has come across this error? Maybe someone has a solution for this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;iAssemblyFactory assemblyFactory = assemblyComponentDefinition.iAssemblyFactory;
                iAssemblyTableRow defaultRow = assemblyFactory.DefaultRow;
                iAssemblyTableRows tableRows = assemblyFactory.TableRows;
                foreach (iAssemblyTableRow tableRow in tableRows)
                {
                    assemblyFactory.DefaultRow = tableRow; //ERROR
                }
                assemblyFactory.DefaultRow = defaultRow;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 29 Apr 2023 14:30:19 GMT</pubDate>
    <dc:creator>Aidarhanovn</dc:creator>
    <dc:date>2023-04-29T14:30:19Z</dc:date>
    <item>
      <title>error when switching iAssemblyTableRows to c# application</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-switching-iassemblytablerows-to-c-application/m-p/11930369#M152029</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;I am writing an application in Visual Studio in C#.&lt;BR /&gt;An error occurs when trying to modify iAssembly.&lt;BR /&gt;At the same time, a similar code in VBA works without errors.&lt;/P&gt;&lt;P&gt;Please tell me if anyone has come across this error? Maybe someone has a solution for this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;iAssemblyFactory assemblyFactory = assemblyComponentDefinition.iAssemblyFactory;
                iAssemblyTableRow defaultRow = assemblyFactory.DefaultRow;
                iAssemblyTableRows tableRows = assemblyFactory.TableRows;
                foreach (iAssemblyTableRow tableRow in tableRows)
                {
                    assemblyFactory.DefaultRow = tableRow; //ERROR
                }
                assemblyFactory.DefaultRow = defaultRow;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 29 Apr 2023 14:30:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-switching-iassemblytablerows-to-c-application/m-p/11930369#M152029</guid>
      <dc:creator>Aidarhanovn</dc:creator>
      <dc:date>2023-04-29T14:30:19Z</dc:date>
    </item>
  </channel>
</rss>

