<?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: vbEmpty s meaning in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639375#M34522</link>
    <description>Have you ever used the Feedback link at the bottom of the code example?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message &lt;BR /&gt;
news:5170050@discussion.autodesk.com...&lt;BR /&gt;
Using VarType(intPoint)=vbEmpty in Acad Help's IntersectWith() sample to&lt;BR /&gt;
decide whether there is intersection or not is an error of the help file&lt;BR /&gt;
since the very first ACAD VBA. As you have found out, the returned array&lt;BR /&gt;
will never be vbEmpty, it is either an array of 0 element or an array of 3&lt;BR /&gt;
elements.&lt;BR /&gt;
&lt;BR /&gt;
I'd bet this bad sample code in ACD Help will be carried on and on to&lt;BR /&gt;
following versions of ACAD each year and confuse VBA programmers who try to&lt;BR /&gt;
use IntersectWith() the first time, so that a simple problem that could be&lt;BR /&gt;
solved in minutes would take them hours to wonder why (I was one of them).&lt;BR /&gt;
&lt;BR /&gt;
"youngman" &lt;YOUNGMANCA&gt; wrote in message&lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub&lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
&lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;/YOUNGMANCA&gt;&lt;/NOTREAL&gt;</description>
    <pubDate>Wed, 10 May 2006 16:06:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-05-10T16:06:12Z</dc:date>
    <item>
      <title>vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639371#M34518</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub &lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
    &lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 10 May 2006 07:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639371#M34518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639372#M34519</link>
      <description>If the two objects do not intersect then .IntersectWith will return a one-dimensional array of doubles with no elements.  Its VarType will be (vbArray or vbDouble), its lower bound will be 0, and its upper bound will be -1.  Try:&lt;BR /&gt;
&lt;BR /&gt;
Debug.Print UBound(intPoints) &amp;gt; LBound(intPoints)</description>
      <pubDate>Wed, 10 May 2006 12:44:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639372#M34519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T12:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639373#M34520</link>
      <description>"youngman" &lt;YOUNGMANCA&gt; wrote in message&lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
----------------&lt;BR /&gt;
&lt;BR /&gt;
In addition to fantums reply there's also an IsEmpty function(for future&lt;BR /&gt;
reference)&lt;BR /&gt;
Dim vTest As Variant&lt;BR /&gt;
If IsEmpty(vTest) Then Debug.Print "Empty"&lt;BR /&gt;
&lt;BR /&gt;
...............&lt;BR /&gt;
Empty&lt;BR /&gt;
&lt;BR /&gt;
hth&lt;BR /&gt;
Mark&lt;/YOUNGMANCA&gt;</description>
      <pubDate>Wed, 10 May 2006 12:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639373#M34520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639374#M34521</link>
      <description>Using VarType(intPoint)=vbEmpty in Acad Help's IntersectWith() sample to &lt;BR /&gt;
decide whether there is intersection or not is an error of the help file &lt;BR /&gt;
since the very first ACAD VBA. As you have found out, the returned array &lt;BR /&gt;
will never be vbEmpty, it is either an array of 0 element or an array of 3 &lt;BR /&gt;
elements.&lt;BR /&gt;
&lt;BR /&gt;
I'd bet this bad sample code in ACD Help will be carried on and on to &lt;BR /&gt;
following versions of ACAD each year and confuse VBA programmers who try to &lt;BR /&gt;
use IntersectWith() the first time, so that a simple problem that could be &lt;BR /&gt;
solved in minutes would take them hours to wonder why (I was one of them).&lt;BR /&gt;
&lt;BR /&gt;
"youngman" &lt;YOUNGMANCA&gt; wrote in message &lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub&lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
&lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;/YOUNGMANCA&gt;</description>
      <pubDate>Wed, 10 May 2006 14:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639374#M34521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T14:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639375#M34522</link>
      <description>Have you ever used the Feedback link at the bottom of the code example?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message &lt;BR /&gt;
news:5170050@discussion.autodesk.com...&lt;BR /&gt;
Using VarType(intPoint)=vbEmpty in Acad Help's IntersectWith() sample to&lt;BR /&gt;
decide whether there is intersection or not is an error of the help file&lt;BR /&gt;
since the very first ACAD VBA. As you have found out, the returned array&lt;BR /&gt;
will never be vbEmpty, it is either an array of 0 element or an array of 3&lt;BR /&gt;
elements.&lt;BR /&gt;
&lt;BR /&gt;
I'd bet this bad sample code in ACD Help will be carried on and on to&lt;BR /&gt;
following versions of ACAD each year and confuse VBA programmers who try to&lt;BR /&gt;
use IntersectWith() the first time, so that a simple problem that could be&lt;BR /&gt;
solved in minutes would take them hours to wonder why (I was one of them).&lt;BR /&gt;
&lt;BR /&gt;
"youngman" &lt;YOUNGMANCA&gt; wrote in message&lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub&lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
&lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;/YOUNGMANCA&gt;&lt;/NOTREAL&gt;</description>
      <pubDate>Wed, 10 May 2006 16:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639375#M34522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639376#M34523</link>
      <description>&amp;gt; Have you ever used the Feedback link at the bottom of the code example?&lt;BR /&gt;
&lt;BR /&gt;
While this was not directed to me, I'll offer a resonpse: Although not for this particular one, I have used similar Feedback links in several places in both the ActiveX and ObjectARX documentation from AutoCAD 2000 through AutoCAD 2005 and have observed no corrections when existing documentation is carried forward to a next version.  My checking in later versions was not exhaustive as I may not have needed to reference the documentation again but in those cases where I checked from simple curiosity corrections were not made.  Unfortunately, I have not kept a list of the topics for which I sent feedback.</description>
      <pubDate>Wed, 10 May 2006 18:43:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639376#M34523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T18:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639377#M34524</link>
      <description>I ran into it on Acad R14.01 in 1999, and probably sent feedback then (not &lt;BR /&gt;
sure now, more than 6 years later). The sample code remains unchanged since &lt;BR /&gt;
until Acad2006 (now sure in Acad2007, just got the copy and not installed &lt;BR /&gt;
yet). But I bet it is still unchanged.&lt;BR /&gt;
&lt;BR /&gt;
"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message &lt;BR /&gt;
news:5170193@discussion.autodesk.com...&lt;BR /&gt;
Have you ever used the Feedback link at the bottom of the code example?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message&lt;BR /&gt;
news:5170050@discussion.autodesk.com...&lt;BR /&gt;
Using VarType(intPoint)=vbEmpty in Acad Help's IntersectWith() sample to&lt;BR /&gt;
decide whether there is intersection or not is an error of the help file&lt;BR /&gt;
since the very first ACAD VBA. As you have found out, the returned array&lt;BR /&gt;
will never be vbEmpty, it is either an array of 0 element or an array of 3&lt;BR /&gt;
elements.&lt;BR /&gt;
&lt;BR /&gt;
I'd bet this bad sample code in ACD Help will be carried on and on to&lt;BR /&gt;
following versions of ACAD each year and confuse VBA programmers who try to&lt;BR /&gt;
use IntersectWith() the first time, so that a simple problem that could be&lt;BR /&gt;
solved in minutes would take them hours to wonder why (I was one of them).&lt;BR /&gt;
&lt;BR /&gt;
"youngman" &lt;YOUNGMANCA&gt; wrote in message&lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub&lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
&lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;/YOUNGMANCA&gt;&lt;/NOTREAL&gt;&lt;/NOT.ROBERTB&gt;</description>
      <pubDate>Wed, 10 May 2006 18:43:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639377#M34524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639378#M34525</link>
      <description>It still isn't. I too don't have much hope that the lingering small things &lt;BR /&gt;
will ever get fixed. The yearly release cycle just sucks.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message &lt;BR /&gt;
news:5170535@discussion.autodesk.com...&lt;BR /&gt;
I ran into it on Acad R14.01 in 1999, and probably sent feedback then (not&lt;BR /&gt;
sure now, more than 6 years later). The sample code remains unchanged since&lt;BR /&gt;
until Acad2006 (now sure in Acad2007, just got the copy and not installed&lt;BR /&gt;
yet). But I bet it is still unchanged.&lt;/NOTREAL&gt;</description>
      <pubDate>Wed, 10 May 2006 19:00:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639378#M34525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-10T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639379#M34526</link>
      <description>thanks to all of you&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message&lt;BR /&gt;
news:5170576@discussion.autodesk.com...&lt;BR /&gt;
It still isn't. I too don't have much hope that the lingering small things&lt;BR /&gt;
will ever get fixed. The yearly release cycle just sucks.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message&lt;BR /&gt;
news:5170535@discussion.autodesk.com...&lt;BR /&gt;
I ran into it on Acad R14.01 in 1999, and probably sent feedback then (not&lt;BR /&gt;
sure now, more than 6 years later). The sample code remains unchanged since&lt;BR /&gt;
until Acad2006 (now sure in Acad2007, just got the copy and not installed&lt;BR /&gt;
yet). But I bet it is still unchanged.&lt;/NOTREAL&gt;&lt;/NOT.ROBERTB&gt;</description>
      <pubDate>Thu, 11 May 2006 00:09:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639379#M34526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-11T00:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639380#M34527</link>
      <description>They generally don't fix things like this, because&lt;BR /&gt;
the fix itself will break existing code (e.g., if you&lt;BR /&gt;
expect and test for an empty array of doubles, and &lt;BR /&gt;
they 'fixed' it to return VT_EMPTY or something else, &lt;BR /&gt;
then your code breaks).&lt;BR /&gt;
&lt;BR /&gt;
Not that they have a problem breaking existing&lt;BR /&gt;
code... Lord knows they've done more than a little&lt;BR /&gt;
of that without any legitmate reason.&lt;BR /&gt;
&lt;BR /&gt;
One of the most egregious examples of that was &lt;BR /&gt;
the change to selection set ordering in 2005, which &lt;BR /&gt;
fails to preserve the explicit picked order, the way&lt;BR /&gt;
previous releases did.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message news:5170535@discussion.autodesk.com...&lt;BR /&gt;
I ran into it on Acad R14.01 in 1999, and probably sent feedback then (not &lt;BR /&gt;
sure now, more than 6 years later). The sample code remains unchanged since &lt;BR /&gt;
until Acad2006 (now sure in Acad2007, just got the copy and not installed &lt;BR /&gt;
yet). But I bet it is still unchanged.&lt;BR /&gt;
&lt;BR /&gt;
"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message &lt;BR /&gt;
news:5170193@discussion.autodesk.com...&lt;BR /&gt;
Have you ever used the Feedback link at the bottom of the code example?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Norman Yuan" &lt;NOTREAL&gt; wrote in message&lt;BR /&gt;
news:5170050@discussion.autodesk.com...&lt;BR /&gt;
Using VarType(intPoint)=vbEmpty in Acad Help's IntersectWith() sample to&lt;BR /&gt;
decide whether there is intersection or not is an error of the help file&lt;BR /&gt;
since the very first ACAD VBA. As you have found out, the returned array&lt;BR /&gt;
will never be vbEmpty, it is either an array of 0 element or an array of 3&lt;BR /&gt;
elements.&lt;BR /&gt;
&lt;BR /&gt;
I'd bet this bad sample code in ACD Help will be carried on and on to&lt;BR /&gt;
following versions of ACAD each year and confuse VBA programmers who try to&lt;BR /&gt;
use IntersectWith() the first time, so that a simple problem that could be&lt;BR /&gt;
solved in minutes would take them hours to wonder why (I was one of them).&lt;BR /&gt;
&lt;BR /&gt;
"youngman" &lt;YOUNGMANCA&gt; wrote in message&lt;BR /&gt;
news:5169543@discussion.autodesk.com...&lt;BR /&gt;
hi,&lt;BR /&gt;
&lt;BR /&gt;
this my sub&lt;BR /&gt;
&lt;BR /&gt;
Sub intPointstest()&lt;BR /&gt;
 Dim explodedObjects As Variant&lt;BR /&gt;
    Dim returnObj1 As AcadObject&lt;BR /&gt;
    Dim returnObj2 As AcadObject&lt;BR /&gt;
&lt;BR /&gt;
    Dim BasePnt As Variant&lt;BR /&gt;
    Dim offsetobj As Variant&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj1, BasePnt, "Select an object"&lt;BR /&gt;
    ThisDrawing.Utility.GetEntity returnObj2, BasePnt, "Select an object"&lt;BR /&gt;
 Dim intPoints As Variant&lt;BR /&gt;
 intPoints = returnObj1.IntersectWith(returnObj2, acExtendNone)&lt;BR /&gt;
Debug.Print VarType(intPoints) &amp;lt;&amp;gt; vbEmpty '*&lt;BR /&gt;
End Sub '&lt;BR /&gt;
&lt;BR /&gt;
i wonder why * is true when there isnt any Intersecting Point,&lt;BR /&gt;
&lt;BR /&gt;
how to judge if there an Intersecting Point or not&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;/YOUNGMANCA&gt;&lt;/NOTREAL&gt;&lt;/NOT.ROBERTB&gt;&lt;/NOTREAL&gt;</description>
      <pubDate>Thu, 11 May 2006 08:14:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639380#M34527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-11T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: vbEmpty s meaning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639381#M34528</link>
      <description>It seems to me that the complaint in this case is not so much that the functionality is wrong but that it doesn't match the documentation.  Surely somewhere during the course of seven plus years the label could be changed to match what's in the tin without breaking code.  If you are going to enlist users as document checkers then shouldn't you take some notice when they tell you the doumentation is wrong?</description>
      <pubDate>Thu, 11 May 2006 12:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbempty-s-meaning/m-p/1639381#M34528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-11T12:47:40Z</dc:date>
    </item>
  </channel>
</rss>

