<?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: Error while adding iAssembly members to occurrences in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9338817#M153118</link>
    <description>&lt;P&gt;Hi Saddam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mind walking me through the exact manual workflow you attempted? I would to see if I can reproduce it on my machine.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 22:22:52 GMT</pubDate>
    <dc:creator>johnsonshiue</dc:creator>
    <dc:date>2020-02-24T22:22:52Z</dc:date>
    <item>
      <title>Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9327256#M153115</link>
      <description>&lt;P&gt;I am trying to add iAssembly occurrences but it is throwing an exception. Please find the below code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;AssemblyDocument oDoc = (AssemblyDocument)invApp.Documents.Add(DocumentTypeEnum.kAssemblyDocumentObject, "", false);&lt;BR /&gt;ComponentOccurrences oOccs = oDoc.ComponentDefinition.Occurrences;&lt;BR /&gt;Matrix oPos = invApp.TransientGeometry.CreateMatrix();&lt;BR /&gt;double oStep = 0;&lt;/P&gt;&lt;P&gt;iAssemblyFactory oiAssemblyFactory = assmComponentDefinition.iAssemblyFactory;&lt;BR /&gt;var tableRowCount = oiAssemblyFactory.TableRows.Count;&lt;BR /&gt;&lt;BR /&gt;for (double iRow = 1; iRow &amp;lt;= (oiAssemblyFactory.TableRows.Count); iRow++)&lt;BR /&gt;{&lt;BR /&gt;oStep = oStep + 10;&lt;BR /&gt;oPos.SetTranslation(invApp.TransientGeometry.CreateVector(oStep, oStep, 0), false);&lt;/P&gt;&lt;P&gt;string filenameis = assmDocument.DisplayName;&lt;BR /&gt;string getParent=Directory.GetParent(assmDocument.FullDocumentName).FullName;&lt;BR /&gt;string parentPath = getParent + "\\" + System.IO.Path.GetFileNameWithoutExtension(assmDocument.DisplayName);&lt;BR /&gt;if (!Directory.Exists(parentPath))&lt;BR /&gt;{&lt;BR /&gt;Directory.CreateDirectory(parentPath);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//Exception at below line&lt;BR /&gt;ComponentOccurrence occs = oOccs.AddiAssemblyMember(assmDocument.FullDocumentName, oPos, iRow);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also same code is working for exporting 2D drawing views and step files but failed for 3D export on the same system.&lt;BR /&gt;I have reinstalled Inventor and also run it in Administrative mode but it didn't work for me.&lt;BR /&gt;Please help for this&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Attachment&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>Wed, 19 Feb 2020 09:12:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9327256#M153115</guid>
      <dc:creator>SaddamShaikh77</dc:creator>
      <dc:date>2020-02-19T09:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9329451#M153116</link>
      <description>&lt;P&gt;Hi! Are you using iLogic rule to edit the iAssembly factory table? Have you tried the workflow manually? Does it work? Please share the files here so forum experts can help take a look.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 22:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9329451#M153116</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2020-02-19T22:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9330047#M153117</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;I have tried workflow manually and it worked. The same function is working in another addin for 2D dwg export but failed for 3D dwg export on the same system.&lt;/P&gt;&lt;P&gt;Attaching the zip for iam files.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 07:05:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9330047#M153117</guid>
      <dc:creator>SaddamShaikh77</dc:creator>
      <dc:date>2020-02-20T07:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9338817#M153118</link>
      <description>&lt;P&gt;Hi Saddam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mind walking me through the exact manual workflow you attempted? I would to see if I can reproduce it on my machine.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 22:22:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9338817#M153118</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2020-02-24T22:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9348262#M153119</link>
      <description>&lt;P&gt;Hello Johnson,&lt;/P&gt;&lt;P&gt;I have created a directory of the file name at input location and added manually occurrences that same should work with API mentioned above.&lt;/P&gt;&lt;P&gt;It is not working though. Please find screenshots below&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 13:09:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9348262#M153119</guid>
      <dc:creator>SaddamShaikh77</dc:creator>
      <dc:date>2020-02-28T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding iAssembly members to occurrences</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9353597#M153120</link>
      <description>&lt;P&gt;Hi Saddam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sorry I am still having trouble understanding the workflow. It looks like you have iAssembly member files generated in the factory-named folder. How do I trigger the error?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 19:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/error-while-adding-iassembly-members-to-occurrences/m-p/9353597#M153120</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2020-03-02T19:58:15Z</dc:date>
    </item>
  </channel>
</rss>

