<?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: Export main assembly to RFA file using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/13985049#M179032</link>
    <description>&lt;P&gt;This is great, would you be able to do this with automation for batch updating OmniClass and Family Type Names of models and assemblies?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2026 16:40:59 GMT</pubDate>
    <dc:creator>ehuliganga</dc:creator>
    <dc:date>2026-01-21T16:40:59Z</dc:date>
    <item>
      <title>Export main assembly to RFA file using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/10528589#M47126</link>
      <description>&lt;P&gt;Looking for help with iLogic to export main iam assembly to RFA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found this thread, but this code exports all the individual components and not the whole assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/rfa-export/m-p/9783828#M116607" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/rfa-export/m-p/9783828#M116607&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 02:57:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/10528589#M47126</guid>
      <dc:creator>frahaman7SKBG</dc:creator>
      <dc:date>2021-08-08T02:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export main assembly to RFA file using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/10531852#M47127</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10796286"&gt;@frahaman7SKBG&lt;/a&gt;.&amp;nbsp; I haven't tested this yet, so be careful, because I don't use BIM stuff.&amp;nbsp; But in theory the following simpler iLogic code should work for you if you just want to export the main assembly.&amp;nbsp; It simply captures the currently 'active' assembly document, then uses the same path and file name as that assembly, but with the ".rfa" file extension when exporting the rfa file.&amp;nbsp; If you need to change the path or file name further, you can change the line defining oFFN, or use multiple more lines to manipulate the string (text).&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;If ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kAssemblyDocumentObject Then
	MsgBox("An Assembly Document must be active for this rule to work. Exiting.",vbOKOnly+vbCritical, "WRONG DOCUMENT TYPE")
	Exit Sub
End If
'gets the 'active' assembly document
Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument
Dim oADef As AssemblyComponentDefinition = oADoc.ComponentDefinition
'same path &amp;amp; file name as active assembly, but with ".rfa" file extension
Dim oFFN As String = System.IO.Path.ChangeExtension(oADoc.FullFileName, ".rfa")
'export
oADef.BIMComponent.ExportBuildingComponent(oFFN)&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 17:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/10531852#M47127</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-09T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export main assembly to RFA file using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/13985049#M179032</link>
      <description>&lt;P&gt;This is great, would you be able to do this with automation for batch updating OmniClass and Family Type Names of models and assemblies?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 16:40:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-main-assembly-to-rfa-file-using-ilogic/m-p/13985049#M179032</guid>
      <dc:creator>ehuliganga</dc:creator>
      <dc:date>2026-01-21T16:40:59Z</dc:date>
    </item>
  </channel>
</rss>

