<?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: iLogic help + Accessing the File name of a referenced document. in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5318343#M122373</link>
    <description>Thanks! That seems to have done it. Was getting random Invalid errors because my indexing was off, then was not printing any info due to me using the wrong document object/referencing.&lt;BR /&gt;&lt;BR /&gt;Now that it's working... Time to figure out how to put it in a drawing table!</description>
    <pubDate>Mon, 06 Oct 2014 01:38:46 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2014-10-06T01:38:46Z</dc:date>
    <item>
      <title>iLogic help + Accessing the File name of a referenced document.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5311339#M122370</link>
      <description>&lt;P&gt;I'm trying to make a list of all referenced / referencing documents and currently all it does is show up blank, as if it is skipping over the whole For section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please take a look and advise me on what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN&gt;Main&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oWrite&lt;/SPAN&gt;&lt;SPAN&gt; &lt;ST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SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 19:41:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5311339#M122370</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2014-10-01T19:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic help + Accessing the File name of a referenced document.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5316659#M122371</link>
      <description>&lt;P&gt;Hi, I think this can be your solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

oWrite = System.IO.File.CreateText("d:\test.txt") ' Change the filename as you like
oDoc = ThisDoc.Document
 
For j = 1 To oDoc.AllReferencedDocuments.Count
    oWrite.WriteLine(j &amp;amp; ") " &amp;amp; oDoc.AllReferencedDocuments.Item(j).FullFileName)
Next

' ******* if you want the first level referenced documents then this is your option *********
'For j = 1 To oDoc.AllReferencedDocuments.Count
'    oWrite.WriteLine(j &amp;amp; ") " &amp;amp; oDoc.AllReferencedDocuments.Item(j).FullFileName)
'Next

oWrite.Close
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 18:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5316659#M122371</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2026-10-28T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic help + Accessing the File name of a referenced document.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5317603#M122372</link>
      <description>&lt;P&gt;I made a mistake...this is the correction for part of my posted code....sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' ******* if you want the first level referenced documents then this is your option *********
'For j = 1 To oDoc.ReferencedDocuments.Count
'    oWrite.WriteLine(j &amp;amp; ") " &amp;amp; oDoc.ReferencedDocuments.Item(j).FullFileName)
'Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 18:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5317603#M122372</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2026-10-28T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic help + Accessing the File name of a referenced document.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5318343#M122373</link>
      <description>Thanks! That seems to have done it. Was getting random Invalid errors because my indexing was off, then was not printing any info due to me using the wrong document object/referencing.&lt;BR /&gt;&lt;BR /&gt;Now that it's working... Time to figure out how to put it in a drawing table!</description>
      <pubDate>Mon, 06 Oct 2014 01:38:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5318343#M122373</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2014-10-06T01:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic help + Accessing the File name of a referenced document.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5322813#M122374</link>
      <description>&lt;P&gt;Hi, I'm glad to be helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 18:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-help-accessing-the-file-name-of-a-referenced-document/m-p/5322813#M122374</guid>
      <dc:creator>rossano_praderi</dc:creator>
      <dc:date>2026-10-28T18:57:39Z</dc:date>
    </item>
  </channel>
</rss>

