<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320102#M93964</link>
    <description>&amp;gt;If you can see the file, then you know it is being resolved.&lt;BR /&gt;
&lt;BR /&gt;
Not if there is a problem with the file.  I've been having trouble with bad&lt;BR /&gt;
block names coming from R14 lately that won't let the xref resolve until&lt;BR /&gt;
it's been audited/recovered.  The same xref resolves in R14.&lt;BR /&gt;
&lt;BR /&gt;
So there is still a need to know if the xref has been resolved.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
==============================&lt;BR /&gt;
Michael Weaver&lt;BR /&gt;
By day: Charles Bettisworth &amp;amp; Co.&lt;BR /&gt;
     mweaver@bettisworth.com&lt;BR /&gt;
By night: AlasCAD&lt;BR /&gt;
   alascad@go.com&lt;BR /&gt;
AOL Instant messenger screen name:&lt;BR /&gt;
   AlasCAD&lt;BR /&gt;
AUGI #w2170&lt;BR /&gt;
==============================</description>
    <pubDate>Wed, 19 Apr 2000 20:10:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-04-19T20:10:50Z</dc:date>
    <item>
      <title>Xref Loaded/Not Loaded?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320099#M93961</link>
      <description>Is there a way to determine if an Xref is found or not found through VBA. I&lt;BR /&gt;
have tried to look through the Object browser but can't seem to find any&lt;BR /&gt;
property that will tell me if the Xref is loaded(found) or not.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Morten Andersen</description>
      <pubDate>Wed, 19 Apr 2000 13:29:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320099#M93961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-19T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Xref Loaded/Not Loaded?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320100#M93962</link>
      <description>well you can loop through all the xrefs and check if the name is equal to&lt;BR /&gt;
the one you want.  here is an example.  I typed most of this on the fly, so&lt;BR /&gt;
there MAY be a syntax problem, but the logic is sound.  I have used this to&lt;BR /&gt;
add all xrefs to a list box before.&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
-&lt;BR /&gt;
Dim strSearchingFor as string&lt;BR /&gt;
Dim acdBlock As AcadBlock&lt;BR /&gt;
&lt;BR /&gt;
strSearchingFor = "MyXref"     ' &amp;lt;-The X-ref you want.&lt;BR /&gt;
&lt;BR /&gt;
For Each acdBlock In ThisDrawing.Blocks&lt;BR /&gt;
    If acdBlock.IsXRef Then&lt;BR /&gt;
        if strSearchingFor = acdBlock.Name then&lt;BR /&gt;
            'Do what you want here - this is the one you want&lt;BR /&gt;
        end if&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
-&lt;BR /&gt;
Morten Andersen wrote in message ...&lt;BR /&gt;
&amp;gt;Is there a way to determine if an Xref is found or not found through VBA. I&lt;BR /&gt;
&amp;gt;have tried to look through the Object browser but can't seem to find any&lt;BR /&gt;
&amp;gt;property that will tell me if the Xref is loaded(found) or not.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Morten Andersen&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Wed, 19 Apr 2000 17:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320100#M93962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-19T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Xref Loaded/Not Loaded?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320101#M93963</link>
      <description>Do you mean you wish to know if the xref is being resolved? What I do is simply check for the existance of the xref in either its pathed location or in the support path. If you can see the file, then you know it is being resolved.&lt;BR /&gt;
&lt;BR /&gt;
Micah</description>
      <pubDate>Wed, 19 Apr 2000 18:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320101#M93963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-19T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320102#M93964</link>
      <description>&amp;gt;If you can see the file, then you know it is being resolved.&lt;BR /&gt;
&lt;BR /&gt;
Not if there is a problem with the file.  I've been having trouble with bad&lt;BR /&gt;
block names coming from R14 lately that won't let the xref resolve until&lt;BR /&gt;
it's been audited/recovered.  The same xref resolves in R14.&lt;BR /&gt;
&lt;BR /&gt;
So there is still a need to know if the xref has been resolved.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
==============================&lt;BR /&gt;
Michael Weaver&lt;BR /&gt;
By day: Charles Bettisworth &amp;amp; Co.&lt;BR /&gt;
     mweaver@bettisworth.com&lt;BR /&gt;
By night: AlasCAD&lt;BR /&gt;
   alascad@go.com&lt;BR /&gt;
AOL Instant messenger screen name:&lt;BR /&gt;
   AlasCAD&lt;BR /&gt;
AUGI #w2170&lt;BR /&gt;
==============================</description>
      <pubDate>Wed, 19 Apr 2000 20:10:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320102#M93964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-19T20:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Xref Loaded/Not Loaded?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320103#M93965</link>
      <description>One way is to use my free VLAX class module. You cna find the soure code for&lt;BR /&gt;
it in the Visual Basic section of my web site. Once you've added the VLAX&lt;BR /&gt;
module to your project, you can use the following routine to determine if an&lt;BR /&gt;
xref is currently resolved. Pass it the name of the xref and it will return&lt;BR /&gt;
a boolean value to you. Please note that the routine performs no checks to&lt;BR /&gt;
determine whether you have specified a valid xref name. That part is up to&lt;BR /&gt;
you. Hope it helps.&lt;BR /&gt;
&lt;BR /&gt;
Public Function Resolved(xref As String) As Boolean&lt;BR /&gt;
&lt;BR /&gt;
    Dim obj As VLAX&lt;BR /&gt;
&lt;BR /&gt;
    Set obj = New VLAX&lt;BR /&gt;
    retVal = obj.EvalLispExpression(&lt;BR /&gt;
        "(= 32 (logand 32 (cdr (assoc 70 (entget (tblobjname " &amp;amp; _&lt;BR /&gt;
          Chr(34) &amp;amp; "block" &amp;amp; Chr(34) &amp;amp; " " &amp;amp; Chr(34) &amp;amp; _&lt;BR /&gt;
          xref &amp;amp; Chr(34) &amp;amp; "))))))"&lt;BR /&gt;
     )&lt;BR /&gt;
    Resolved = retVal&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Morten Andersen" &lt;NOSPAM-MA&gt; wrote in message&lt;BR /&gt;
news:ef00a73.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Is there a way to determine if an Xref is found or not found through VBA.&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; have tried to look through the Object browser but can't seem to find any&lt;BR /&gt;
&amp;gt; property that will tell me if the Xref is loaded(found) or not.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Morten Andersen&lt;BR /&gt;
&amp;gt;&lt;/NOSPAM-MA&gt;</description>
      <pubDate>Wed, 19 Apr 2000 20:35:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/xref-loaded-not-loaded/m-p/320103#M93965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-19T20:35:13Z</dc:date>
    </item>
  </channel>
</rss>

