<?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: Import data exchange model into Inventor in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11739159#M148791</link>
    <description>&lt;P&gt;Funny enough when running the code in the blog post using the &lt;STRONG&gt;urn&lt;/STRONG&gt; of an old &lt;STRONG&gt;Data Exchange&lt;/STRONG&gt; file I had, I did get the same result: nothing got imported and also got an &lt;STRONG&gt;*.htm&lt;/STRONG&gt; file showing an error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adamnagy_0-1675855099289.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1173549i4C6ADF4823ACF9E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adamnagy_0-1675855099289.png" alt="adamnagy_0-1675855099289.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Maybe I don't have access to that exchange file anymore or something went wrong with it - I don't even know where to look for it.&amp;nbsp;&lt;BR /&gt;Then I used the &lt;STRONG&gt;urn&lt;/STRONG&gt; of another &lt;STRONG&gt;Data&amp;nbsp;Exchange &lt;/STRONG&gt;file in &lt;STRONG&gt;ACC&lt;/STRONG&gt;, and with that the import worked fine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adamnagy_1-1675855255441.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1173551i21893DC70F9BD091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adamnagy_1-1675855255441.png" alt="adamnagy_1-1675855255441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please make sure that you are indeed using the &lt;STRONG&gt;urn of a Data Exchange file&lt;/STRONG&gt;, not the original file it was created for, and also &lt;STRONG&gt;open it in ACC to see that it's working fine&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 11:27:57 GMT</pubDate>
    <dc:creator>adam.nagy</dc:creator>
    <dc:date>2023-02-08T11:27:57Z</dc:date>
    <item>
      <title>Import data exchange model into Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11723871#M148560</link>
      <description>&lt;P&gt;I found a post in Mod the Machine about importing data exchange models into inventor using VBA.&lt;/P&gt;&lt;P&gt;original post:&amp;nbsp;&lt;A href="https://modthemachine.typepad.com/my_weblog/2022/04/import-data-exchange-model.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2022/04/import-data-exchange-model.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Sub ImportDataExchangeComponentSample()
    Dim oDoc As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim sFdx As String
    sFdx = "https://developer.api.autodesk.com/exchange/v1/exchanges"
    
    Dim sUrn As String
    sUrn = "urn:adsk.wipprod:dm.lineage:&lt;FONT color="#FFFF00"&gt;**********************&lt;/FONT&gt;"
    
    Dim sUrl As String
    sUrl = sFdx + "?filters=attribute.exchangeFileUrn==" + sUrn
    
    Dim oDEDef As ImportedDataExchangeComponentDefinition
    Set oDEDef = oDoc.ComponentDefinition.ImportedComponents.CreateDataExchangeDefinition(sUrl)
    
    Dim oDEComp As ImportedDataExchangeComponent
    Set oDEComp = oDoc.ComponentDefinition.ImportedComponents.Add(oDEDef)
End Sub&lt;/PRE&gt;&lt;P&gt;I tried it with a few data exchange models that I have on the Autodesk construction cloud and I don't get a model in inventor.&lt;BR /&gt;&lt;BR /&gt;Has any of you tried it?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:51:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11723871#M148560</guid>
      <dc:creator>Dimitar.Atanasov2VL53</dc:creator>
      <dc:date>2023-02-02T10:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Import data exchange model into Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11739159#M148791</link>
      <description>&lt;P&gt;Funny enough when running the code in the blog post using the &lt;STRONG&gt;urn&lt;/STRONG&gt; of an old &lt;STRONG&gt;Data Exchange&lt;/STRONG&gt; file I had, I did get the same result: nothing got imported and also got an &lt;STRONG&gt;*.htm&lt;/STRONG&gt; file showing an error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adamnagy_0-1675855099289.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1173549i4C6ADF4823ACF9E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adamnagy_0-1675855099289.png" alt="adamnagy_0-1675855099289.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Maybe I don't have access to that exchange file anymore or something went wrong with it - I don't even know where to look for it.&amp;nbsp;&lt;BR /&gt;Then I used the &lt;STRONG&gt;urn&lt;/STRONG&gt; of another &lt;STRONG&gt;Data&amp;nbsp;Exchange &lt;/STRONG&gt;file in &lt;STRONG&gt;ACC&lt;/STRONG&gt;, and with that the import worked fine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adamnagy_1-1675855255441.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1173551i21893DC70F9BD091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adamnagy_1-1675855255441.png" alt="adamnagy_1-1675855255441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please make sure that you are indeed using the &lt;STRONG&gt;urn of a Data Exchange file&lt;/STRONG&gt;, not the original file it was created for, and also &lt;STRONG&gt;open it in ACC to see that it's working fine&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:27:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11739159#M148791</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2023-02-08T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import data exchange model into Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11739209#M148794</link>
      <description>&lt;P&gt;The problem at my end was that we still use Revit 2022 and Data exchange models can be created from Revit 2023+. Also, I skipped the most important step of actually creating a data exchange model in the ACC.&lt;BR /&gt;Initially, I thought that every model in the ACC is readily available to grab with that code and imported into Inventor.&lt;BR /&gt;&lt;BR /&gt;Anyway, when I tested with an actual data exchange model and the code works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/import-data-exchange-model-into-inventor/m-p/11739209#M148794</guid>
      <dc:creator>Dimitar.Atanasov2VL53</dc:creator>
      <dc:date>2023-02-08T11:41:55Z</dc:date>
    </item>
  </channel>
</rss>

