<?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: RFA Export in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828204#M57544</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Two years ago I was also looking for the same code for the same workflow. And its just now that I completed this. Anyway, I hope this will work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
 &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
 
 &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to continue?"&lt;/SPAN&gt;, &lt;SPAN&gt;vbOKCancel&lt;/SPAN&gt; + &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN&gt;"Batch Create RFA"&lt;/SPAN&gt;) = &lt;SPAN&gt;vbCancel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

   
    &lt;SPAN&gt;' Get the assembly component definition.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
   	&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
   
    &lt;SPAN&gt;' Get all of the leaf occurrences of the assembly.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrencesEnumerator&lt;/SPAN&gt;
    &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;AllLeafOccurrences&lt;/SPAN&gt;
   
    &lt;SPAN&gt;' Iterate through the occurrences and print the name.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
    &lt;SPAN&gt;Next&lt;/SPAN&gt;
	
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;":"&lt;/SPAN&gt;, &lt;SPAN&gt;"_"&lt;/SPAN&gt;)
&lt;SPAN&gt;'		MsgBox(oOccName)&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Users\Joseph\Desktop\Inventor Study\AL WASL\Workspaces\Workspace\Test\ToRFA\"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".rfa"&lt;/SPAN&gt;
		&lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;BIMComponent&lt;/SPAN&gt;.&lt;SPAN&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)
	
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;


&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	

&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Oct 2020 19:20:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-27T19:20:25Z</dc:date>
    <item>
      <title>RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9783828#M57540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i´m looking for an iLogic-code to export all parts of an assembly (+ sub) as single rfa-files including her geometric position in relation to the top-assembly...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 07:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9783828#M57540</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-10-05T07:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9786358#M57541</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, Inventor application is not supported to export Inventor files into .rfa file. Please log a wish list at idea station using below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is a way to export into .adsk file format. For more details, go through below forum discussion link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-bim-export-to-adsk/td-p/9146183" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-bim-export-to-adsk/td-p/9146183&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9786358#M57541</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2020-10-06T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9790586#M57542</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4427777"&gt;@chandra.shekar.g&lt;/a&gt;that is not accurate, you have been able to export RFA files for several years now, see &lt;A href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Inventor/files/GUID-D20CD536-0577-4253-BE0E-F07508BE1E81-htm.html" target="_blank" rel="noopener"&gt;https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Inventor/files/GUID-D20CD536-0577-4253-BE0E-F07508BE1E81-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp; is looking for is the iLogic code to export an RFA.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 05:55:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9790586#M57542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-08T05:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9790620#M57543</link>
      <description>&lt;P&gt;Thank You Clint,&lt;/P&gt;&lt;P&gt;that´s exactly the Point...&lt;/P&gt;&lt;P&gt;I would need a code that goes through all components of all Sub-Assemblies and generate rfa-files for each - incl. component-position in relation to the top-assembly.&lt;/P&gt;&lt;P&gt;My plan is to build it up in Revit using a dynamo script...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 06:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9790620#M57543</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-10-08T06:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828204#M57544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Two years ago I was also looking for the same code for the same workflow. And its just now that I completed this. Anyway, I hope this will work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
 &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
 
 &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to continue?"&lt;/SPAN&gt;, &lt;SPAN&gt;vbOKCancel&lt;/SPAN&gt; + &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN&gt;"Batch Create RFA"&lt;/SPAN&gt;) = &lt;SPAN&gt;vbCancel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

   
    &lt;SPAN&gt;' Get the assembly component definition.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
   	&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
   
    &lt;SPAN&gt;' Get all of the leaf occurrences of the assembly.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrencesEnumerator&lt;/SPAN&gt;
    &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;AllLeafOccurrences&lt;/SPAN&gt;
   
    &lt;SPAN&gt;' Iterate through the occurrences and print the name.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
    &lt;SPAN&gt;Next&lt;/SPAN&gt;
	
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;":"&lt;/SPAN&gt;, &lt;SPAN&gt;"_"&lt;/SPAN&gt;)
&lt;SPAN&gt;'		MsgBox(oOccName)&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Users\Joseph\Desktop\Inventor Study\AL WASL\Workspaces\Workspace\Test\ToRFA\"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".rfa"&lt;/SPAN&gt;
		&lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;BIMComponent&lt;/SPAN&gt;.&lt;SPAN&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)
	
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
    	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;


&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	

&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Oct 2020 19:20:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828204#M57544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-27T19:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828211#M57545</link>
      <description>&lt;P&gt;Here is also for multibody part.&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/solid-bodies-to-rfa/m-p/9823345#M117259" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/solid-bodies-to-rfa/m-p/9823345#M117259&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 19:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828211#M57545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-27T19:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828994#M57546</link>
      <description>&lt;P&gt;Hi JOJO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You very much - will try this and see if it works for me....&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 06:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9828994#M57546</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-10-28T06:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9838061#M57547</link>
      <description>&lt;P&gt;Hi JOJO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried your code on several assemblies, but always hanging (with no response).&lt;/P&gt;&lt;P&gt;Can it be that there´s a problem with component-pattern and/or content center instances?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so far for your work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 12:17:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9838061#M57547</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-11-01T12:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9838369#M57548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;. Actually it is slow even with small assembly and to be honest I dont know why. Ill check if there is a way to make it faster. Just tested it with component-pattern, it works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 16:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9838369#M57548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-01T16:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839439#M57549</link>
      <description>&lt;P&gt;Hi JOJO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response - for my last attempt&amp;nbsp; i waited about 1 hour b4 i stopped....&lt;/P&gt;&lt;P&gt;In this assembly were only about 50&amp;nbsp;&lt;SPAN&gt;occurrences...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem is, that i want to use assemblies with more than 500 occurrences.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But anyway - many thanks for your time and your support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 09:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839439#M57549</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-11-02T09:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839581#M57550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added a iLogic logger to the code so you can see the progress of your export. I wouldn't expect this to be quick as Inventor is doing a lot of translation work in the background. At least with this mod you can see where it's at as it's processing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
	&lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to continue?"&lt;/SPAN&gt;, &lt;SPAN&gt;vbOKCancel&lt;/SPAN&gt; + &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN&gt;"Batch Create RFA"&lt;/SPAN&gt;) = &lt;SPAN&gt;vbCancel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

	&lt;SPAN&gt;' Get the assembly component definition.&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

	&lt;SPAN&gt;' Get all of the leaf occurrences of the assembly.&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrencesEnumerator&lt;/SPAN&gt;
	&lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;AllLeafOccurrences&lt;/SPAN&gt;

	&lt;SPAN&gt;' Iterate through the occurrences and print the name.&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;LeafCount&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;":"&lt;/SPAN&gt;, &lt;SPAN&gt;"_"&lt;/SPAN&gt;)
		&lt;SPAN&gt;'		MsgBox(oOccName)&lt;/SPAN&gt;

		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\temp\"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".rfa"&lt;/SPAN&gt;
		&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Debug&lt;/SPAN&gt;(&lt;SPAN&gt;"Processing document "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;i&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" of "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;LeafCount&lt;/SPAN&gt;)
		&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Debug&lt;/SPAN&gt;(&lt;SPAN&gt;"Current Document name: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oOccName&lt;/SPAN&gt;)

		&lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;BIMComponent&lt;/SPAN&gt;.&lt;SPAN&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)

		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;i&lt;/SPAN&gt; += 1
	&lt;SPAN&gt;Next&lt;/SPAN&gt;

	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
	&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Don't forget to show your iLogic Log tab before you run this by pressing the '+' on your model browser.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:38:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839581#M57550</guid>
      <dc:creator>lmc.engineering</dc:creator>
      <dc:date>2020-11-02T10:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839615#M57551</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As stated by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3895633"&gt;@lmc.engineering&lt;/a&gt;,&amp;nbsp;this will take time... I cleaned up the code a bit but I don't expect it to run much faster.&lt;/P&gt;
&lt;P&gt;I also added a progressbar to it. Basically I use a different approach to hide and show all occurrences that I think will be faster. But the main thing thats time consuming is still the translation to RFA, and there's not much we can do about that...&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Imports&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Windows&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Forms&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FolderBrowserDialog&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Select folder to save RFA-files"&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowDialog&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectedPath&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPath&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectedPath&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Do you want to continue?"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;vbOKCancel&lt;/SPAN&gt; + &lt;SPAN style="color: #800000;"&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Batch Create RFA"&lt;/SPAN&gt;) = &lt;SPAN style="color: #800000;"&gt;vbCancel&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&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: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oLeafOccs&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrencesEnumerator&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AllLeafOccurrences&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTotal&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oLeafOccs&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProgressBar&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ProgressBar&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateProgressBar&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oTotal&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Exporting to RFA"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoEvents&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;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDesignViewRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;HideAll&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBIMcomponent&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1
	&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: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oLeafOccs&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Visible&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOccName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;":"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"_"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPath&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"\"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oOccName&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;".rfa"&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Message&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Exporting "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" ("&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"/"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oTotal&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;")"&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UpdateProgress&lt;/SPAN&gt;
		&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoEvents&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oBIMcomponent&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;)
		&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Visible&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; += 1
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&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;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDesignViewRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowAll&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9839615#M57551</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-02T10:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9840509#M57552</link>
      <description>&lt;P&gt;This is a lot faster and looks professional!&amp;nbsp; By the way, the reason why there is "vbExclamation" there is because its slow. Applying shrinkwrap could help. Thank you to all.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 16:56:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9840509#M57552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-02T16:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9840872#M57553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;STRONG&gt;Jhoel,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot for the code - does the job more fast and you can watch the progress while running.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Before I used that code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports ioPath = System.IO.Path&lt;BR /&gt;Imports System.Windows.Forms&lt;BR /&gt;Imports System.IO&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub Main&lt;BR /&gt;'break&lt;/P&gt;&lt;P&gt;Dim ThisDoc As Inventor.Document = ThisApplication.ActiveDocument&lt;BR /&gt;Dim oDef As AssemblyComponentDefinition = ThisApplication.ActiveDocument.ComponentDefinition&lt;/P&gt;&lt;P&gt;'Get File Name of Assembly&lt;BR /&gt;Dim sAssFullFileName As String = ThisDoc.FullFileName&lt;BR /&gt;Dim sAssDirectoryName As String = ioPath.GetDirectoryName(ThisDoc.FullFileName)&lt;BR /&gt;Dim sAssFileNameWithoutExtension As String = ioPath.GetFileNameWithoutExtension(ThisDoc.FullFileName)&lt;BR /&gt;Dim BaseFileName As String = ioPath.Combine(sAssDirectoryName &amp;amp; sAssFileNameWithoutExtension)&lt;/P&gt;&lt;P&gt;' Der Export-Folder&lt;BR /&gt;Dim sExportFolder As String = String.Empty&lt;BR /&gt;Dim fbd As New FolderBrowserDialog&lt;BR /&gt;fbd.SelectedPath = sAssDirectoryName&lt;BR /&gt;If Not (fbd.ShowDialog() = DialogResult.OK) Then&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;sExportFolder = fbd.SelectedPath&lt;/P&gt;&lt;P&gt;' Get Reference BIM Component&lt;BR /&gt;Dim oBIM As BIMComponent = Nothing&lt;BR /&gt;Dim oBIMOC As BIMComponentPropertySet = Nothing&lt;/P&gt;&lt;P&gt;Dim iExportTotal As Integer = oDef.Occurrences.Count&lt;BR /&gt;Dim iCurrentExport As Integer = 1&lt;BR /&gt;Dim oProgBar As Inventor.ProgressBar = ThisApplication.CreateProgressBar(False, iExportTotal, "SSI BIM Export")&lt;BR /&gt;oProgBar.Message = "Export in progress " &amp;amp; iCurrentExport &amp;amp; " of " &amp;amp; iExportTotal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Ein temporärer Ordner wird angelegt&lt;BR /&gt;Dim sTempFolder As String = createRandomTempFolder&lt;BR /&gt;Dim sTempAssemblyFileName As String&lt;BR /&gt;Dim oTempAssembly As Inventor.AssemblyDocument&lt;BR /&gt;'Dim oDocTemp As Inventor.Document&lt;BR /&gt;Dim oDocTemp As Inventor.PartDocument&lt;/P&gt;&lt;P&gt;'Break&lt;/P&gt;&lt;P&gt;' Alle Dateien in dem Zielordner werden gelöscht&lt;BR /&gt;'Directory.Delete(sExportFolder, )&lt;/P&gt;&lt;P&gt;For Each file As String In System.IO.Directory.GetFiles(sExportFolder)&lt;BR /&gt;System.IO.File.Delete(File)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;' Die .csv Datei&lt;BR /&gt;Dim sCVS As String = sExportFolder &amp;amp; "\instances.csv"&lt;/P&gt;&lt;P&gt;' Die .log Datei&lt;BR /&gt;Dim sLOG As String = sExportFolder &amp;amp; "\instances.log"&lt;BR /&gt;&lt;BR /&gt;Dim assOccs = From occ As ComponentOccurrence In oDef.Occurrences _&lt;BR /&gt;Where occ.Suppressed = False _&lt;BR /&gt;Select occ&lt;/P&gt;&lt;P&gt;' Schleife über alle Occurences&lt;BR /&gt;For Each occ As ComponentOccurrence In assOccs&lt;BR /&gt;' For Each occ As ComponentOccurrence In oDef.Occurrences&lt;BR /&gt;&lt;BR /&gt;'If TypeOf occ.Definition Is ComponentOccurrence Then&lt;/P&gt;&lt;P&gt;oProgBar.Message = "Export in progress " &amp;amp; iCurrentExport &amp;amp; " of " &amp;amp; iExportTotal&lt;BR /&gt;iCurrentExport += 1&lt;/P&gt;&lt;P&gt;' If Not occ.Suppressed Then&lt;/P&gt;&lt;P&gt;' Das zugehörige Document&lt;BR /&gt;Dim oDoc As Inventor.Document = occ.Definition.Document&lt;/P&gt;&lt;P&gt;' Die Matrix des gewählten Bauteils&lt;BR /&gt;Dim mat As Matrix = occ.Transformation&lt;/P&gt;&lt;P&gt;If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then&lt;BR /&gt;'If True Then&lt;/P&gt;&lt;P&gt;'designPropSet = oDoc.PropertySets.Item("Design Tracking Properties")&lt;/P&gt;&lt;P&gt;Dim sPartNumber As String = oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value&lt;/P&gt;&lt;P&gt;' Es kann vorkommen, dass die Bauteilnummer leer ist, dann wird stattdessen der Displayname verwendet&lt;BR /&gt;If sPartNumber.Equals(String.Empty) Then&lt;BR /&gt;sPartNumber = oDoc.DisplayName&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;sPartNumber = sPartNumber.Replace(",", ".")&lt;/P&gt;&lt;P&gt;' Die .log Datei bekommt einen Eintrag&lt;BR /&gt;My.Computer.FileSystem.WriteAllText(sLOG, Replace(occ.Name, ":", "_") &amp;amp; "," &amp;amp; sPartNumber &amp;amp; vbCrLf, True)&lt;/P&gt;&lt;P&gt;' Es wird ein temporärer Name gebildet&lt;BR /&gt;'sTempFileName = ioPath.Combine(sTempFolder, designPropSet.Item("Part Number").Value &amp;amp; ioPath.GetExtension(oDoc.FullFileName))&lt;BR /&gt;sTempAssemblyFileName = ioPath.Combine(sTempFolder, Replace(occ.Name, ":", "_") &amp;amp; ".iam")&lt;BR /&gt;'oTempAssembly = CreateTempAssembly(ThisApplication, sTempAssemblyFileName)&lt;/P&gt;&lt;P&gt;'oTempAssembly = ThisApplication.Documents.Add(DocumentTypeEnum.kAssemblyDocumentObject, ThisApplication.FileManager.GetTemplateFile(DocumentTypeEnum.kAssemblyDocumentObject))&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt;System.IO.File.Copy(ThisApplication.FileManager.GetTemplateFile(DocumentTypeEnum.kAssemblyDocumentObject), sTempAssemblyFileName, True)&lt;BR /&gt;Catch&lt;BR /&gt;MsgBox("Failed to create temp copy of file:" &amp;amp; vbCrLf &amp;amp; sTempAssemblyFileName)&lt;BR /&gt;End Try&lt;/P&gt;&lt;P&gt;' Der Schreibschutz wird entfernt&lt;BR /&gt;System.IO.File.SetAttributes(sTempAssemblyFileName, FileAttributes.Normal)&lt;/P&gt;&lt;P&gt;' Die temporäre Baugruppe wird geöffnet&lt;BR /&gt;'oTempAssembly.Open&lt;BR /&gt;oTempAssembly = ThisApplication.Documents.Open(sTempAssemblyFileName, False)&lt;/P&gt;&lt;P&gt;' Das Bauteil wird platziert&lt;BR /&gt;Dim oCompOccPart As ComponentOccurrence = oTempAssembly.ComponentDefinition.Occurrences.Add(oDoc.FullFileName, mat)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;oBIM = oTempAssembly.ComponentDefinition.BIMComponent&lt;/P&gt;&lt;P&gt;Dim oBimConnectors As BIMConnectors = oBIM.Connectors&lt;/P&gt;&lt;P&gt;' Alle Connectoren werden übertragen&lt;BR /&gt;Dim oBimConn As BIMConnector&lt;BR /&gt;Dim oBimConnDef As BIMConnectorDefinition&lt;BR /&gt;Dim oBimConnDefNew As BIMConnectorDefinition&lt;BR /&gt;Dim collGeo As ObjectCollection&lt;/P&gt;&lt;P&gt;' Schleife über alle Konnektoren&lt;BR /&gt;For i As Integer = 1 To oDoc.ComponentDefinition.BIMComponent.Connectors.count&lt;BR /&gt;oBimConn = oDoc.ComponentDefinition.BIMComponent.Connectors.Item(i)&lt;BR /&gt;oBimConnDef = oBimConn.Definition&lt;/P&gt;&lt;P&gt;collGeo = ThisApplication.TransientObjects.CreateObjectCollection&lt;/P&gt;&lt;P&gt;Dim oObj As Object&lt;/P&gt;&lt;P&gt;For j As Integer = 1 To oBimConnDef.Geometry.count&lt;BR /&gt;'oGeo = oBimConnDef.Geometry.Item(j)&lt;BR /&gt;'oObj = getGeometryByTransientKey(oCompOccPart.Definition, oBimConnDef.Geometry.Item(j).TransientKey)&lt;BR /&gt;'collGeo.Add(oObj)&lt;BR /&gt;oCompOccPart.CreateGeometryProxy(oBimConnDef.Geometry.Item(j), oObj)&lt;BR /&gt;collGeo.Add(oObj)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;'oBimConnDef.Geometry.Item(1).Edges(1).Geometry&lt;/P&gt;&lt;P&gt;Select oBimConn.DefinitionType&lt;BR /&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMCableTrayConnectorType&lt;BR /&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMConduitConnectorType&lt;BR /&gt;Case BIMConnectorDefinitionTypeEnum.kBIMDuctConnectorType&lt;BR /&gt;oBimConnDefNew = oBIM.Connectors.CreateDuctConnectorDefinition(collGeo, oBimConnDef.ConnectorShape)&lt;BR /&gt;oBimConnDefNew.Description = oBimConnDef.Description&lt;BR /&gt;'oBimConnDefNew.Direction = oBimConnDef.Direction&lt;BR /&gt;'oBimConnDefNew.ExposeDescriptionAsParameter = oBimConnDef.ExposeDescriptionAsParameter&lt;BR /&gt;'oBimConnDefNew.ExposeFlowValueAsParameter = oBimConnDef.ExposeFlowValueAsParameter&lt;BR /&gt;oBimConnDefNew.SystemType = oBimConnDef.SystemType&lt;BR /&gt;oBimConnDefNew.FlowConfiguration = oBimConnDef.FlowConfiguration&lt;BR /&gt;oBimConnDefNew.FlowDirection = oBimConnDef.FlowDirection&lt;BR /&gt;oBimConnDefNew.FlowValue = oBimConnDef.FlowValue&lt;/P&gt;&lt;P&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMElectricalConnectorType&lt;BR /&gt;Case BIMConnectorDefinitionTypeEnum.kBIMPipeConnectorType&lt;BR /&gt;oBimConnDefNew = oBIM.Connectors.CreatePipeConnectorDefinition(collGeo, oBimConnDef.ConnectorShape)&lt;BR /&gt;Case Else&lt;BR /&gt;MsgBox("Connectortype not handled - " &amp;amp; oBimConn.DefinitionType.toString)&lt;BR /&gt;End Select&lt;/P&gt;&lt;P&gt;oBimConnectors.Add(oBimConnDefNew)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;' Write Component Type Definition&lt;BR /&gt;' If this line isn't run, the Model Properties tickbox will not get ticked and Model Properties will not get exported&lt;BR /&gt;oBIM.ComponentDescription.ComponentType = "23.40.70.11.11.14"&lt;BR /&gt;oBIM.ComponentDescription.FamilyType = sPartNumber&lt;/P&gt;&lt;P&gt;'oBIM.ComponentDescription.OrientationType = 103681&lt;/P&gt;&lt;P&gt;'Dim oBIMOrientType As BIMComponentOrientationTypeEnum = kUserCoordinateSystemOrientationType&lt;BR /&gt;oBIM.ComponentDescription.OrientationType = BIMComponentOrientationTypeEnum.kModelOriginOrientationType' 103683 '103681 = ViewCube, 103683 = UCS, 103682 = Model Origin&lt;BR /&gt;' oBIM.ComponentDescription.UserCoordinateSystemOrientation = oUCS&lt;/P&gt;&lt;P&gt;' Get reference for writting Identity Data&lt;BR /&gt;' Achtung: Hier muss der InternalName verwendet werden, da es sonst, je nach Inventor-Sprachversion, unterschiedliche Bezeichnungen gibt&lt;BR /&gt;oBIMOC = oBIM.ComponentDescription.ComponentPropertySets.Item("identity_data")&lt;/P&gt;&lt;P&gt;' Dim BIMDescProp As BIMComponentProperty&lt;BR /&gt;Dim BIMManProp As BIMComponentProperty&lt;BR /&gt;BIMManProp = oBIMOC.Item(1)&lt;BR /&gt;BIMManProp.Value = "SSI Test 123"&lt;BR /&gt;BIMManProp.Value = sPartNumber&lt;/P&gt;&lt;P&gt;' Dim oNameValueMap As NameValueMap&lt;BR /&gt;' oNameValueMap = ThisApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;' oNameValueMap.Add("RevitFileVersion", "Current")'Supported Revit File Version ("Current" = RFA2020, "Legacy" = RFA2017)&lt;BR /&gt;' oNameValueMap.Add(“CustomRevitFamilyTemplate”, pRFT)'Supported Revit Template (Generic *.rft options included with Inventor install)&lt;BR /&gt;' 'Export the file&lt;BR /&gt;' oBIMComp.ExportBuildingComponentWithOptions(BaseFileName &amp;amp; ".rfa", oNameValueMap) ’Can also use “.adsk” If required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;' ' Add custom properties ===========================&lt;BR /&gt;Dim oc As ObjectCollection = oBIM.ComponentDescription.ModelProperties&lt;BR /&gt;oc.Clear&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyText1", "CustomValue1"))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyText2", "CustomValue2"))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyText3", "CustomValue3"))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyNumber1", 1004))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyNumber2", 1005))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyNumber3", 1006))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyBoolean1", True))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyBoolean2", False))&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "CustomPropertyBoolean3", True))&lt;/P&gt;&lt;P&gt;Dim oCustProp As Inventor.Property&lt;BR /&gt;oCustProp = GetCustomProperty(oDoc, "DocNumber")&lt;BR /&gt;If oCustProp IsNot Nothing Then&lt;BR /&gt;oCustProp.Value = IIf (oCustProp.Value = String.Empty, "---", oCustProp.Value)&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "DocNumber", oCustProp.Value))&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;oCustProp = GetCustomProperty(oDoc, "Z-Number")&lt;BR /&gt;If oCustProp IsNot Nothing Then&lt;BR /&gt;oCustProp.Value = IIf (oCustProp.Value = String.Empty, "---", oCustProp.Value)&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "Z-Number", oCustProp.Value))&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;oCustProp = GetCustomProperty(oDoc, "Itemnumber")&lt;BR /&gt;If oCustProp IsNot Nothing Then&lt;BR /&gt;oCustProp.Value = IIf (oCustProp.Value = String.Empty, "---", oCustProp.Value)&lt;BR /&gt;oc.Add(SetCustomProperty(oTempAssembly, "Itemnumber", oCustProp.Value))&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;oBIM.ComponentDescription.ModelProperties = oc&lt;BR /&gt;' ' Add custom properties ===========================&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;' Export .rfa file&lt;BR /&gt;oBIM.ExportBuildingComponent(ioPath.Combine(sExportFolder, Replace(occ.Name, ":", "_") &amp;amp; ".rfa")) 'By Part Number&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;' Die .csv Datei bekommt einen Eintrag&lt;BR /&gt;My.Computer.FileSystem.WriteAllText(sCVS, Replace(occ.Name, ":", "_") &amp;amp; "," &amp;amp; sPartNumber &amp;amp; ",0,0,0,0" &amp;amp; vbCrLf, True)&lt;/P&gt;&lt;P&gt;oProgBar.UpdateProgress&lt;BR /&gt;oTempAssembly.Save&lt;BR /&gt;oTempAssembly.Close&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;oProgBar.Close&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Function getGeometryByTransientKey(oCompDef As ComponentDefinition, iKey As Integer) As Object&lt;BR /&gt;Dim oObj As Object&lt;BR /&gt;For Each oBody As SurfaceBody In oCompDef.SurfaceBodies&lt;BR /&gt;oObj = oBody.BindTransientKeyToObject(iKey)&lt;BR /&gt;If oObj IsNot Nothing Then&lt;BR /&gt;Return oObj&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;Return Nothing&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Function GetCustomProperty(oDoc As Inventor.Document, sPropertyName As String) As Inventor.Property&lt;BR /&gt;Dim oCustPropSet As PropertySet = oDoc.PropertySets.Item("Inventor User Defined Properties")&lt;/P&gt;&lt;P&gt;' Schleife über alle Custom-Porperties&lt;BR /&gt;Dim oProp As Inventor.Property&lt;BR /&gt;Dim bFound As Boolean = False&lt;BR /&gt;For i As Integer = 1 To oCustPropSet.Count&lt;BR /&gt;oProp = oCustPropSet.Item(i)&lt;/P&gt;&lt;P&gt;' Wenn der Name dem Gesuchten entspricht...&lt;BR /&gt;If oProp.Name.Equals(sPropertyName, StringComparison.OrdinalIgnoreCase) Then&lt;/P&gt;&lt;P&gt;' Merker, dass die Eigenschaft gefunden wurde&lt;BR /&gt;Return oProp&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;Return Nothing&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Function SetCustomProperty(oDoc As Inventor.Document, sPropertyName As String, Value As Object) As Inventor.Property&lt;BR /&gt;Dim oCustPropSet As PropertySet = oDoc.PropertySets.Item("Inventor User Defined Properties")&lt;/P&gt;&lt;P&gt;' Schleife über alle Custom-Porperties&lt;BR /&gt;Dim oProp As Inventor.Property&lt;BR /&gt;Dim bFound As Boolean = False&lt;BR /&gt;For i As Integer = 1 To oCustPropSet.Count&lt;BR /&gt;oProp = oCustPropSet.Item(i)&lt;/P&gt;&lt;P&gt;' Wenn der Name dem Gesuchten entspricht...&lt;BR /&gt;If oProp.Name.Equals(sPopertyName, StringComparison.OrdinalIgnoreCase) Then&lt;/P&gt;&lt;P&gt;' Merker, dass die Eigenschaft gefunden wurde&lt;BR /&gt;bFound = True&lt;BR /&gt;Exit For&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;' Wenn die benutzerdefinierte Eigenschaft nicht gefunden wurde ...&lt;BR /&gt;If Not bFound Then&lt;/P&gt;&lt;P&gt;' ... wir die neue Eigenschaft angelegt&lt;BR /&gt;oProp = oCustPropSet.Add(Value, sPropertyName)&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;' der Wert gesetzt&lt;BR /&gt;'oProp.Value = sValue&lt;BR /&gt;Return oProp&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Private Function CreateTempAssembly(oApp As Inventor.Application, sAsmPathAndName As String) As AssemblyDocument&lt;BR /&gt;'Dim oApp As Application = ThisApplication&lt;BR /&gt;Dim oAssyDoc As Inventor.AssemblyDocument = oApp.Documents.Add(DocumentTypeEnum.kAssemblyDocumentObject, sAsmPathAndName)&lt;BR /&gt;Return oAssyDoc&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Sub RotateAroundX(oMatrix As Matrix, rotationAngle As Double)&lt;BR /&gt;Dim oRotateMatrix As Matrix = ThisApplication.TransientGeometry.CreateMatrix&lt;BR /&gt;oRotateMatrix.Cell(1, 1) = 1&lt;BR /&gt;oRotateMatrix.Cell(1, 2) = 0&lt;BR /&gt;oRotateMatrix.Cell(1, 3) = 0&lt;BR /&gt;oRotateMatrix.Cell(2, 1) = 0&lt;BR /&gt;oRotateMatrix.Cell(2, 2) = Math.Cos(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(2, 3) = -Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(3, 1) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 2) = Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(3, 3) = Math.Cos(rotationAngle)&lt;/P&gt;&lt;P&gt;oMatrix.TransformBy(oRotateMatrix)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub RotateAroundY(oMatrix As Matrix, rotationAngle As Double)&lt;BR /&gt;Dim oRotateMatrix As Matrix = ThisApplication.TransientGeometry.CreateMatrix&lt;BR /&gt;oRotateMatrix.Cell(1, 1) = Math.Cos(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(1, 2) = 0&lt;BR /&gt;oRotateMatrix.Cell(1, 3) = Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(2, 1) = 0&lt;BR /&gt;oRotateMatrix.Cell(2, 2) = 1&lt;BR /&gt;oRotateMatrix.Cell(2, 3) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 1) = -Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(3, 2) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 3) = Math.Cos(rotationAngle)&lt;/P&gt;&lt;P&gt;oMatrix.TransformBy(oRotateMatrix)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub RotateAroundZ(oMatrix As Inventor.Matrix, rotationAngle As Double)&lt;/P&gt;&lt;P&gt;Dim oRotateMatrix As Matrix = ThisApplication.TransientGeometry.CreateMatrix&lt;BR /&gt;oRotateMatrix.Cell(1, 1) = Math.Cos(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(1, 2) = -Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(1, 3) = 0&lt;BR /&gt;oRotateMatrix.Cell(2, 1) = Math.Sin(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(2, 2) = Math.Cos(rotationAngle)&lt;BR /&gt;oRotateMatrix.Cell(2, 3) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 1) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 2) = 0&lt;BR /&gt;oRotateMatrix.Cell(3, 3) = 1&lt;/P&gt;&lt;P&gt;oMatrix.TransformBy(oRotateMatrix)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub exportOccurences(sExportFolder As String)&lt;BR /&gt;Dim sExportOccurencePositions As String = ioPath.Combine(sExportFolder &amp;amp; "positions.xml")&lt;BR /&gt;'MsgBox(sExportFolder)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Function createRandomTempFolder() As String&lt;BR /&gt;Dim folder As String = ioPath.Combine(ioPath.GetTempPath, ioPath.GetFileNameWithoutExtension(ioPath.GetRandomFileName))&lt;BR /&gt;Do While System.IO.Directory.Exists(folder) Or System.IO.File.Exists(folder)&lt;BR /&gt;folder = ioPath.Combine(ioPath.GetTempPath, ioPath.GetFileNameWithoutExtension(ioPath.GetRandomFileName))&lt;BR /&gt;Loop&lt;BR /&gt;If Not System.IO.Directory.Exists(folder) Then&lt;BR /&gt;System.IO.Directory.CreateDirectory(folder)&lt;BR /&gt;End If&lt;BR /&gt;Return folder&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;' &lt;A href="https://www.startbim.com/2017/06/omniclass-23-products-list.html" target="_blank"&gt;https://www.startbim.com/2017/06/omniclass-23-products-list.html&lt;/A&gt;&lt;BR /&gt;' [Design Data]\BIM Exchange\Support\AuthoringTemplates\Categories.xml&lt;BR /&gt;Public NotInheritable Class Omniclass&lt;BR /&gt;Public Const ManufacturingEquipment As String = "23.40.70.17.11"&lt;BR /&gt;Public Const Conveyor As String = "23.50.30.24"&lt;BR /&gt;Public Const HVAC As String = "23.75.00.00"&lt;BR /&gt;' ...&lt;BR /&gt;End Class&lt;/P&gt;&lt;P&gt;' 'summaryPropSet = oDoc.PropertySets.Item("Inventor Summary Information")&lt;BR /&gt;' customPropSet = oDoc.PropertySets.Item("Inventor User Defined Properties")&lt;BR /&gt;' designPropSet = oDoc.PropertySets.Item("Design Tracking Properties")&lt;BR /&gt;' pDesc = designPropSet.Item("Description")&lt;BR /&gt;' pPart = designPropSet.Item("Part Number")&lt;BR /&gt;' pVend = designPropSet.Item("Vendor")&lt;/P&gt;&lt;P&gt;' 'Set Properties&lt;BR /&gt;' Description = pDesc.Value&lt;BR /&gt;' PartNumber = pPart.Value&lt;BR /&gt;' Manufacturer = pVend.Value&lt;BR /&gt;' Model = Left(oDoc.FullFileName, Len(oDoc.FullFileName) - 4)&lt;BR /&gt;' URL = "&lt;A href="http://www.autodesk.com" target="_blank"&gt;www.autodesk.com&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;' 'MessageBox.Show("Property = " &amp;amp; Description, "Parameter Read Validation")&lt;/P&gt;&lt;P&gt;' 'Check for existing exported file&lt;BR /&gt;' &amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentFile = FolderName &amp;amp; PartNumber &amp;amp; ".adsk"&lt;BR /&gt;' If System.IO.File.Exists(CurrentFile) Then&lt;BR /&gt;' 'MessageBox.Show("The file already exists.")&lt;/P&gt;&lt;P&gt;' Else&lt;/P&gt;&lt;P&gt;' 'Set the Revit Family Component Type&lt;BR /&gt;' If familyType = "Conveyor" Then&lt;BR /&gt;' ComponentType = "23.50.30.24"&lt;BR /&gt;' ElseIf familyType = "HVAC" Then&lt;BR /&gt;' ComponentType = "23.75.00.00"&lt;BR /&gt;' Else 'Everything else will be defined as Manufacturing Equipment&lt;BR /&gt;' ComponentType = "23.40.70.17.11"&lt;BR /&gt;' End If&lt;/P&gt;&lt;P&gt;' 'Get Reference BIM Component&lt;BR /&gt;' Dim oBIM As BIMComponent&lt;BR /&gt;' oBIM = oDoc.ComponentDefinition.BIMComponent&lt;/P&gt;&lt;P&gt;' 'Write Component Type Definition&lt;BR /&gt;' 'If this line isn't run, the Model Properties tickbox will not get ticked and Model Properties will not get exported&lt;BR /&gt;' oBIM.ComponentDescription.ComponentType = ComponentType&lt;BR /&gt;' 'Set Export Orientation (ViewCube, Model Origin)&lt;BR /&gt;' oBIM.ComponentDescription.OrientationType = 103682 '103681 = ViewCube, 103683 = UCS, 103682 = Model Origin&lt;BR /&gt;' 'Get reference for writting Identity Data&lt;BR /&gt;' Dim oBimOC As BIMComponentPropertySet&lt;BR /&gt;' oBimOC = oBIM.ComponentDescription.ComponentPropertySets.Item("Identity Data")&lt;/P&gt;&lt;P&gt;' 'Write BIM Identity data&lt;BR /&gt;' 'This must be set after 'Write Component Type Definition' otherwise this data will get wiped&lt;BR /&gt;' Dim BIMDescProp As BIMComponentProperty&lt;BR /&gt;' Dim BIMManProp As BIMComponentProperty&lt;BR /&gt;' Dim BIMModelProp As BIMComponentProperty&lt;BR /&gt;' Dim BIMURLProp As BIMComponentProperty&lt;BR /&gt;' BIMDescProp = oBimOC.Item(1)&lt;BR /&gt;' BIMDescProp.Value = Description&lt;BR /&gt;' BIMManProp = oBimOC.Item(2)&lt;BR /&gt;' BIMManProp.Value = Manufacturer&lt;BR /&gt;' BIMModelProp = oBimOC.Item(3)&lt;BR /&gt;' BIMModelProp.Value = Model&lt;BR /&gt;' BIMURLProp = oBimOC.Item(4)&lt;BR /&gt;' BIMURLProp.Value = URL&lt;/P&gt;&lt;P&gt;' 'Export .adsk file&lt;BR /&gt;' 'oBIM.ExportBuildingComponent(oDoc.FullFileName &amp;amp; ".adsk") 'Includes Inventor file extension&lt;BR /&gt;' 'oBIM.ExportBuildingComponent(FolderName &amp;amp; Left(oDoc.FullFileName, Len(oDoc.FullFileName) - 4) &amp;amp; ".adsk") 'By Occurence Filename&lt;BR /&gt;' oBIM.ExportBuildingComponent(FolderName &amp;amp; PartNumber &amp;amp; ".adsk") 'By Part Number&lt;BR /&gt;' &amp;nbsp; FileExists = False&lt;BR /&gt;' End If&lt;/P&gt;&lt;P&gt;'Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is also fine but doesn´t go through the sub-assemblies - writing RFAs only on first level.&lt;/P&gt;&lt;P&gt;Could this 2 codes be combined to run through all occurences?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 19:31:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9840872#M57553</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-11-02T19:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9841069#M57554</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad to hear it's faster... I didn't really test it on a bigger assembly so I wouldn't know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Shrikwrap could be a way to reduce time for sure. But we'll have to take into account the time it would take to create the shrinkwraps &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9693322"&gt;@thomas.BaunachVVBHV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wow, that's a massive chunk of code! I'm glad to see it contains my subs for rotating a matrix from here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-place-a-part-and-define-rotation/td-p/8983150" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-place-a-part-and-define-rotation/td-p/8983150&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The subs are never used in the code though so they can just aswell be removed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To make it run through all parts, even in subassemblies, you can use ComponentOccurrences.AllLeafOccurrences, since parts are allways leaf occurrences. Just as @Anonymous did in his code.&lt;/P&gt;
&lt;P&gt;I haven't gone through your code in detail but just changing from traversing ComponentOccurrences to traversing AllLeafOccurrences should do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Imports&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Path&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Imports&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Windows&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Forms&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Imports&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'Get File Name of Assembly&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sAssFullFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sAssDirectoryName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetDirectoryName&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sAssFileNameWithoutExtension&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BaseFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sAssDirectoryName&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sAssFileNameWithoutExtension&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Der Export-Folder&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Empty&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;fbd&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FolderBrowserDialog&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;fbd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectedPath&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sAssDirectoryName&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;fbd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowDialog&lt;/SPAN&gt;() = &lt;SPAN style="color: #800000;"&gt;DialogResult&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OK&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;fbd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectedPath&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Get Reference BIM Component&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBIMOC&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponentPropertySet&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iExportTotal&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AllLeafOccurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;iCurrentExport&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProgBar&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ProgressBar&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateProgressBar&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;iExportTotal&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"SSI BIM Export"&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oProgBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Message&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Export in progress "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;iCurrentExport&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" of "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;iExportTotal&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Ein temporärer Ordner wird angelegt&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sTempFolder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;createRandomTempFolder&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim oDocTemp As Inventor.Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDocTemp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt;


&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;file&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Directory&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetFiles&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Die .csv Datei&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sCVS&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"\instances.csv"&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Die .log Datei&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sLOG&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"\instances.log"&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;assOccs&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;From&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&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: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AllLeafOccurrences&lt;/SPAN&gt; _
&lt;SPAN style="color: #ff0000;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Suppressed&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; _
&lt;SPAN style="color: #ff0000;"&gt;Select&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Schleife über alle Occurences&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;occ&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: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;assOccs&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oProgBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Message&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Export in progress "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;iCurrentExport&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" of "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;iExportTotal&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;iCurrentExport&lt;/SPAN&gt; += 1

&lt;SPAN style="color: #808080;"&gt;' Das zugehörige Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Die Matrix des gewählten Bauteils&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;mat&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Matrix&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Transformation&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Es kann vorkommen, dass die Bauteilnummer leer ist, dann wird stattdessen der Displayname verwendet&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Equals&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Empty&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;","&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"."&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Die .log Datei bekommt einen Eintrag&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;My&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Computer&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileSystem&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WriteAllText&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sLOG&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;":"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"_"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="color: #008080;"&gt;","&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;vbCrLf&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Es wird ein temporärer Name gebildet&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sTempFolder&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;":"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"_"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="color: #008080;"&gt;".iam"&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Copy&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetTemplateFile&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Failed to create temp copy of file:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Der Schreibschutz wird entfernt&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetAttributes&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;FileAttributes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Normal&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Die temporäre Baugruppe wird geöffnet&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sTempAssemblyFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Das Bauteil wird platziert&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCompOccPart&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;oTempAssembly&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;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;mat&lt;/SPAN&gt;)


&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConnectors&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnectors&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Alle Connectoren werden übertragen&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnector&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnectorDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnectorDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;collGeo&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Schleife über alle Konnektoren&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;count&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConn&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;collGeo&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Object&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;count&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCompOccPart&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;collGeo&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Select&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBimConn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DefinitionType&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMCableTrayConnectorType&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMConduitConnectorType&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Case&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnectorDefinitionTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kBIMDuctConnectorType&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateDuctConnectorDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collGeo&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectorShape&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'oBimConnDefNew.Direction = oBimConnDef.Direction&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'oBimConnDefNew.ExposeDescriptionAsParameter = oBimConnDef.ExposeDescriptionAsParameter&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'oBimConnDefNew.ExposeFlowValueAsParameter = oBimConnDef.ExposeFlowValueAsParameter&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SystemType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SystemType&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowConfiguration&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowConfiguration&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowDirection&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowDirection&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowValue&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FlowValue&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Case BIMConnectorDefinitionTypeEnum.kBIMElectricalConnectorType&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Case&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnectorDefinitionTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kBIMPipeConnectorType&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePipeConnectorDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;collGeo&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oBimConnDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectorShape&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Case&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;"Connectortype not handled - "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oBimConn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DefinitionType&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;toString&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Select&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oBimConnectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oBimConnDefNew&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Write Component Type Definition&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' If this line isn't run, the Model Properties tickbox will not get ticked and Model Properties will not get exported&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentType&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"23.40.70.11.11.14"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FamilyType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OrientationType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;BIMComponentOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kModelOriginOrientationType&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;' 103683 '103681 = ViewCube, 103683 = UCS, 103682 = Model Origin&lt;/SPAN&gt;


&lt;SPAN style="color: #808080;"&gt;' Get reference for writting Identity Data&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' Achtung: Hier muss der InternalName verwendet werden, da es sonst, je nach Inventor-Sprachversion, unterschiedliche Bezeichnungen gibt&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBIMOC&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentPropertySets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"identity_data"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Dim BIMDescProp As BIMComponentProperty&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMManProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponentProperty&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;BIMManProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIMOC&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #800000;"&gt;BIMManProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"SSI Test 123"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;BIMManProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' ' Add custom properties ===========================&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelProperties&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Clear&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyText1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomValue1"&lt;/SPAN&gt;))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyText2"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomValue2"&lt;/SPAN&gt;))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyText3"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomValue3"&lt;/SPAN&gt;))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyNumber1"&lt;/SPAN&gt;, 1004))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyNumber2"&lt;/SPAN&gt;, 1005))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyNumber3"&lt;/SPAN&gt;, 1006))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyBoolean1"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyBoolean2"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;))
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"CustomPropertyBoolean3"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;))

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;GetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"DocNumber"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;IsNot&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;IIf&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Empty&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"---"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"DocNumber"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;))
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;GetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Z-Number"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;IsNot&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;IIf&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Empty&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"---"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Z-Number"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;))
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;GetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Itemnumber"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;IsNot&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;IIf&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Empty&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"---"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Itemnumber"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;))
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDescription&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelProperties&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oc&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' ' Add custom properties ===========================&lt;/SPAN&gt;


&lt;SPAN style="color: #808080;"&gt;' Export .rfa file&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;":"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"_"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="color: #008080;"&gt;".rfa"&lt;/SPAN&gt;)) &lt;SPAN style="color: #808080;"&gt;'By Part Number&lt;/SPAN&gt;


&lt;SPAN style="color: #808080;"&gt;' Die .csv Datei bekommt einen Eintrag&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;My&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Computer&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileSystem&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WriteAllText&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sCVS&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;":"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"_"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="color: #008080;"&gt;","&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sPartNumber&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;",0,0,0,0"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;vbCrLf&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #800000;"&gt;oProgBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UpdateProgress&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Save&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oTempAssembly&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oProgBar&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;getGeometryByTransientKey&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;iKey&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Object&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Object&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oBody&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BindTransientKeyToObject&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;iKey&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;IsNot&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oObj&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;GetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sPropertyName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PropertySet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Inventor User Defined Properties"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Schleife über alle Custom-Porperties&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bFound&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Wenn der Name dem Gesuchten entspricht...&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Equals&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sPropertyName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;StringComparison&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OrdinalIgnoreCase&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Merker, dass die Eigenschaft gefunden wurde&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SetCustomProperty&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sPropertyName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Object&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PropertySet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Inventor User Defined Properties"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Schleife über alle Custom-Porperties&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bFound&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' Wenn der Name dem Gesuchten entspricht...&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Equals&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sPopertyName&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;StringComparison&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OrdinalIgnoreCase&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Merker, dass die Eigenschaft gefunden wurde&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;bFound&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Wenn die benutzerdefinierte Eigenschaft nicht gefunden wurde ...&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bFound&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' ... wir die neue Eigenschaft angelegt&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCustPropSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sPropertyName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' der Wert gesetzt&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'oProp.Value = sValue&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CreateTempAssembly&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oApp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Application&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sAsmPathAndName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim oApp As Application = ThisApplication&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oApp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sAsmPathAndName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;



&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exportOccurences&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sExportOccurencePositions&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sExportFolder&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"positions.xml"&lt;/SPAN&gt;)
&lt;SPAN style="color: #808080;"&gt;'MsgBox(sExportFolder)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;createRandomTempFolder&lt;/SPAN&gt;() &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetTempPath&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetRandomFileName&lt;/SPAN&gt;))
&lt;SPAN style="color: #ff0000;"&gt;Do&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Directory&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Combine&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetTempPath&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ioPath&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetRandomFileName&lt;/SPAN&gt;))
&lt;SPAN style="color: #ff0000;"&gt;Loop&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Directory&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IO&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Directory&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateDirectory&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;folder&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' https://www.startbim.com/2017/06/omniclass-23-products-list.html&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' [Design Data]\BIM Exchange\Support\AuthoringTemplates\Categories.xml&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;NotInheritable&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Omniclass&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Const&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ManufacturingEquipment&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"23.40.70.17.11"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Const&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Conveyor&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"23.50.30.24"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Const&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HVAC&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"23.75.00.00"&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;' ...&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9841069#M57554</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-02T21:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9843860#M57555</link>
      <description>&lt;P&gt;Hi Jhoel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again Thanx - yes, your changing did the trick...&amp;nbsp; works now as it should&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:01:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/9843860#M57555</guid>
      <dc:creator>thomas.BaunachVVBHV</dc:creator>
      <dc:date>2020-11-03T22:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/11310757#M57556</link>
      <description>&lt;P&gt;Is it possible to use &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt; code for exporting RVT files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDlg&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;FolderBrowserDialog&lt;/SPAN&gt;
	&lt;SPAN&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN&gt;Description&lt;/SPAN&gt; = &lt;SPAN&gt;"Select folder to save RFA-files"&lt;/SPAN&gt;
	&lt;SPAN&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN&gt;ShowDialog&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to continue?"&lt;/SPAN&gt;, &lt;SPAN&gt;vbOKCancel&lt;/SPAN&gt; + &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN&gt;"Batch Create RFA"&lt;/SPAN&gt;) = &lt;SPAN&gt;vbCancel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrencesEnumerator&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;AllLeafOccurrences&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTotal&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oProgressBar&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ProgressBar&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CreateProgressBar&lt;/SPAN&gt;(&lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;oTotal&lt;/SPAN&gt;, &lt;SPAN&gt;"Exporting to RFA"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)
	&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;DoEvents&lt;/SPAN&gt;
	&lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDesignViewRepresentation&lt;/SPAN&gt;.&lt;SPAN&gt;HideAll&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBIMcomponent&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BIMComponent&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;BIMComponent&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oLeafOccs&lt;/SPAN&gt;
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;":"&lt;/SPAN&gt;, &lt;SPAN&gt;"_"&lt;/SPAN&gt;)
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oPath&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"\"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oOccName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".rfa"&lt;/SPAN&gt;
		&lt;SPAN&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN&gt;Message&lt;/SPAN&gt; = &lt;SPAN&gt;"Exporting "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" ("&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;i&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"/"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oTotal&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;")"&lt;/SPAN&gt;
		&lt;SPAN&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateProgress&lt;/SPAN&gt;
		&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;DoEvents&lt;/SPAN&gt;
		&lt;SPAN&gt;oBIMcomponent&lt;/SPAN&gt;.&lt;SPAN&gt;ExportBuildingComponent&lt;/SPAN&gt;(&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;i&lt;/SPAN&gt; += 1
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;oProgressBar&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;
	&lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDesignViewRepresentation&lt;/SPAN&gt;.&lt;SPAN&gt;ShowAll&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 07:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/11310757#M57556</guid>
      <dc:creator>urban.ostirZ44XW</dc:creator>
      <dc:date>2022-07-21T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: RFA Export</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/13247263#M57557</link>
      <description>&lt;P&gt;Hi Jhoel!&lt;BR /&gt;&lt;BR /&gt;Thank you very much for sharing your script. Would you have any advice for how I would be able to specify a consistent UCS (Orientation) for the export of multiple assemblies sitting within a 'master' assembly file?&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:28:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rfa-export/m-p/13247263#M57557</guid>
      <dc:creator>lewis_sutherlandP6G4K</dc:creator>
      <dc:date>2025-01-07T12:28:31Z</dc:date>
    </item>
  </channel>
</rss>

