<?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 XReference Path in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315724#M95353</link>
    <description>How do you retrieve the path of an XRef using VBA in A2K?  Using Autodesk's&lt;BR /&gt;
examples, I can create a list of Xref names using IsXref but I haven't had&lt;BR /&gt;
much luck figuring out how to create a list of Xref path's.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
TM Amick II</description>
    <pubDate>Wed, 23 Feb 2000 22:35:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-02-23T22:35:19Z</dc:date>
    <item>
      <title>XReference Path</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315724#M95353</link>
      <description>How do you retrieve the path of an XRef using VBA in A2K?  Using Autodesk's&lt;BR /&gt;
examples, I can create a list of Xref names using IsXref but I haven't had&lt;BR /&gt;
much luck figuring out how to create a list of Xref path's.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
TM Amick II</description>
      <pubDate>Wed, 23 Feb 2000 22:35:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315724#M95353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-23T22:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: XReference Path</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315725#M95354</link>
      <description>The path property of the AcadExternalReference&lt;BR /&gt;
object returns the fullpathname of an XRef&lt;BR /&gt;
&lt;BR /&gt;
Denis</description>
      <pubDate>Thu, 24 Feb 2000 18:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315725#M95354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315726#M95355</link>
      <description>I'm aware of this property. My problem is that I have been unsuccessful at&lt;BR /&gt;
getting the command syntax correct.&lt;BR /&gt;
&lt;BR /&gt;
TM&lt;BR /&gt;
&lt;BR /&gt;
Denis Gagne &lt;DEGAG&gt; wrote in message&lt;BR /&gt;
news:893s57$mre10@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; The path property of the AcadExternalReference&lt;BR /&gt;
&amp;gt; object returns the fullpathname of an XRef&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Denis&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DEGAG&gt;</description>
      <pubDate>Thu, 24 Feb 2000 18:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315726#M95355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T18:38:48Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315727#M95356</link>
      <description>TM&lt;BR /&gt;
&lt;BR /&gt;
The path property will work only on an AcadExternalReference&lt;BR /&gt;
found in the modelspace collection:&lt;BR /&gt;
&lt;BR /&gt;
Dim oEntity As AcadEntity&lt;BR /&gt;
For Each oEntity In ThisDrawing.ModelSpace&lt;BR /&gt;
If TypeOf oEntity Is AcadExternalReference Then&lt;BR /&gt;
  ListBox1.AddItem (oEntity.Path)&lt;BR /&gt;
End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
Curiously the pathName information contained in an XRef block&lt;BR /&gt;
record was not exposed to VBA. If, in your drawing, there's no&lt;BR /&gt;
AcadExternalReference (suppose it has been deleted accidently),&lt;BR /&gt;
I'm afraid there's no way to get the pathname of your XRef block&lt;BR /&gt;
from VBA.&lt;BR /&gt;
&lt;BR /&gt;
If the AcadExternalReference was inserted without retaining the&lt;BR /&gt;
fullpathname, the path property won't return any path but only&lt;BR /&gt;
the name of the referenced drawing&lt;BR /&gt;
&lt;BR /&gt;
I can't see either how we could create an AcadExternalReference&lt;BR /&gt;
from an XRef block. Very amazing.&lt;BR /&gt;
&lt;BR /&gt;
Denis&lt;BR /&gt;
&lt;BR /&gt;
TM Amick II &lt;THURL.AMICK&gt; a écrit dans le message :&lt;BR /&gt;
893tv6$mqa17@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; I'm aware of this property. My problem is that I have been unsuccessful at&lt;BR /&gt;
&amp;gt; getting the command syntax correct.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TM&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Denis Gagne &lt;DEGAG&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:893s57$mre10@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; The path property of the AcadExternalReference&lt;BR /&gt;
&amp;gt; &amp;gt; object returns the fullpathname of an XRef&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Denis&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DEGAG&gt;&lt;/THURL.AMICK&gt;</description>
      <pubDate>Thu, 24 Feb 2000 23:18:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315727#M95356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T23:18:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315728#M95357</link>
      <description>Thanks Denis.  That worked like a charm.&lt;BR /&gt;
&lt;BR /&gt;
Denis Gagne &lt;DEGAG&gt; wrote in message&lt;BR /&gt;
news:894ec0$otb8@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; TM&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The path property will work only on an AcadExternalReference&lt;BR /&gt;
&amp;gt; found in the modelspace collection:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim oEntity As AcadEntity&lt;BR /&gt;
&amp;gt; For Each oEntity In ThisDrawing.ModelSpace&lt;BR /&gt;
&amp;gt; If TypeOf oEntity Is AcadExternalReference Then&lt;BR /&gt;
&amp;gt;   ListBox1.AddItem (oEntity.Path)&lt;BR /&gt;
&amp;gt; End If&lt;BR /&gt;
&amp;gt; Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Curiously the pathName information contained in an XRef block&lt;BR /&gt;
&amp;gt; record was not exposed to VBA. If, in your drawing, there's no&lt;BR /&gt;
&amp;gt; AcadExternalReference (suppose it has been deleted accidently),&lt;BR /&gt;
&amp;gt; I'm afraid there's no way to get the pathname of your XRef block&lt;BR /&gt;
&amp;gt; from VBA.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If the AcadExternalReference was inserted without retaining the&lt;BR /&gt;
&amp;gt; fullpathname, the path property won't return any path but only&lt;BR /&gt;
&amp;gt; the name of the referenced drawing&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I can't see either how we could create an AcadExternalReference&lt;BR /&gt;
&amp;gt; from an XRef block. Very amazing.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Denis&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TM Amick II &lt;THURL.AMICK&gt; a écrit dans le message :&lt;BR /&gt;
&amp;gt; 893tv6$mqa17@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; I'm aware of this property. My problem is that I have been unsuccessful&lt;BR /&gt;
at&lt;BR /&gt;
&amp;gt; &amp;gt; getting the command syntax correct.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TM&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Denis Gagne &lt;DEGAG&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:893s57$mre10@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; The path property of the AcadExternalReference&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; object returns the fullpathname of an XRef&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Denis&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DEGAG&gt;&lt;/THURL.AMICK&gt;&lt;/DEGAG&gt;</description>
      <pubDate>Fri, 25 Feb 2000 12:54:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315728#M95357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-25T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315729#M95358</link>
      <description>This is a pain, but it will work:&lt;BR /&gt;
Use the insert method of the block object.  This will give you an&lt;BR /&gt;
AcadBlockReference that can be cast as AcadExternalReference, from which you&lt;BR /&gt;
can get the path.&lt;BR /&gt;
Then delete the AcadBlockReference:-(&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I can't see either how we could create an AcadExternalReference&lt;BR /&gt;
&amp;gt; from an XRef block. Very amazing.</description>
      <pubDate>Fri, 25 Feb 2000 17:26:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xreference-path/m-p/315729#M95358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-25T17:26:46Z</dc:date>
    </item>
  </channel>
</rss>

