<?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: Rubberband between GETPOINTS? in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314826#M43967</link>
    <description>....I should have read your response before I posted....;)&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message &lt;BR /&gt;
news:4834011@discussion.autodesk.com...&lt;BR /&gt;
You might be able to access the grdraw lisp function&lt;BR /&gt;
using the VL.APPLICATION&lt;/JORGE&gt;</description>
    <pubDate>Wed, 04 May 2005 13:26:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-04T13:26:30Z</dc:date>
    <item>
      <title>Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314821#M43962</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;So I've got my custom leader command almost perfect &lt;BR /&gt;
(or perfect enough) but I'm missing one thing - that nice rubber band between my &lt;BR /&gt;
getpoints.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The way I'm doing it is to prompt the user for a &lt;BR /&gt;
StartPoint, a NextPoint and a LastPoint:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;StartPoint = ThisDrawing.Utility.GetPoint(, vbcr &lt;BR /&gt;
&amp;amp; "Select leader start point: ")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;NextPoint = &lt;BR /&gt;
ThisDrawing.Utility.GetPoint(StartPoint, "Select next leader point: &lt;BR /&gt;
")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;LastPoint = ThisDrawing.Utility.GetPoint(NextPoint, &lt;BR /&gt;
"Select last leader point: ")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Then these go into an array for the &lt;BR /&gt;
AddLeader...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Its a little unnerving that once you pick the &lt;BR /&gt;
NextPoint, the "line" between StartPoint and NextPoint disappears. Any ideas for &lt;BR /&gt;
keeping it or am I going about the whole gepoint thing wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Thanks in advance for any help!&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 May 2005 01:42:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314821#M43962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T01:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314822#M43963</link>
      <description>That is the way the GetPoint method is meant to work. It will only rubberband from the point supplied to where there cursor is until the user selects a point. To do what I think you want you could once NextPoint is selected draw a line between StartPoint &amp;amp; NextPoint and once LastPoint is selected delete the line.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Wed, 04 May 2005 02:55:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314822#M43963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T02:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314823#M43964</link>
      <description>You might be able to access the grdraw lisp function&lt;BR /&gt;
using the VL.APPLICATION&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;BR /&gt;
&lt;BR /&gt;
"pkirill" &lt;PKIRILL&gt; wrote in message &lt;BR /&gt;
news:4833983@discussion.autodesk.com...&lt;BR /&gt;
So I've got my custom leader command almost perfect (or perfect enough) but &lt;BR /&gt;
I'm missing one thing - that nice rubber band between my getpoints.&lt;BR /&gt;
&lt;BR /&gt;
The way I'm doing it is to prompt the user for a StartPoint, a NextPoint and &lt;BR /&gt;
a LastPoint:&lt;BR /&gt;
&lt;BR /&gt;
StartPoint = ThisDrawing.Utility.GetPoint(, vbcr &amp;amp; "Select leader start &lt;BR /&gt;
point: ")&lt;BR /&gt;
NextPoint = ThisDrawing.Utility.GetPoint(StartPoint, "Select next leader &lt;BR /&gt;
point: ")&lt;BR /&gt;
LastPoint = ThisDrawing.Utility.GetPoint(NextPoint, "Select last leader &lt;BR /&gt;
point: ")&lt;BR /&gt;
&lt;BR /&gt;
Then these go into an array for the AddLeader...&lt;BR /&gt;
&lt;BR /&gt;
Its a little unnerving that once you pick the NextPoint, the "line" between &lt;BR /&gt;
StartPoint and NextPoint disappears. Any ideas for keeping it or am I going &lt;BR /&gt;
about the whole gepoint thing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any help!&lt;/PKIRILL&gt;</description>
      <pubDate>Wed, 04 May 2005 03:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314823#M43964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T03:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314824#M43965</link>
      <description>That's what I was afraid of.  You don't happen to know of a way to "tag" the &lt;BR /&gt;
line(s) drawn so they can be quickly erased just prior to the creation of &lt;BR /&gt;
the leader do you?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the fast response!&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHAN taylor=""&gt; wrote in message news:4834009@discussion.autodesk.com...&lt;BR /&gt;
That is the way the GetPoint method is meant to work. It will only &lt;BR /&gt;
rubberband from the point supplied to where there cursor is until the user &lt;BR /&gt;
selects a point. To do what I think you want you could once NextPoint is &lt;BR /&gt;
selected draw a line between StartPoint &amp;amp; NextPoint and once LastPoint is &lt;BR /&gt;
selected delete the line.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan&lt;/NATHAN&gt;</description>
      <pubDate>Wed, 04 May 2005 12:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314824#M43965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T12:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314825#M43966</link>
      <description>The only way to 'tag' them, AFAIK, would be attaching XData, or some such &lt;BR /&gt;
method, which is certainly overkill.  Just keep the object and delete when &lt;BR /&gt;
you're done.....something like&lt;BR /&gt;
&lt;BR /&gt;
StartPoint = ThisDrawing.Utility.GetPoint(, vbcr &amp;amp; "Select leader start &lt;BR /&gt;
point: ")&lt;BR /&gt;
NextPoint = ThisDrawing.Utility.GetPoint(StartPoint, "Select next leader &lt;BR /&gt;
point: ")&lt;BR /&gt;
set objLine = ThisDrawing.ModelSpace.AddLine(StartPoint, NextPoint)&lt;BR /&gt;
LastPoint = ThisDrawing.Utility.GetPoint(NextPoint, "Select last leader &lt;BR /&gt;
point: ")&lt;BR /&gt;
'Draw your leader&lt;BR /&gt;
objLine.Delete&lt;BR /&gt;
&lt;BR /&gt;
I've seen posts here about some way of getting the GRDRAW lisp functionality &lt;BR /&gt;
via a class that you can get off the web from one of the regulars, here, I &lt;BR /&gt;
think.  I've never gotten into it, but I know some others here have, if you &lt;BR /&gt;
really want to get into that, search the group for GRDRAW.&lt;BR /&gt;
&lt;BR /&gt;
"pkirill" &lt;PKIRILL&gt; wrote in message &lt;BR /&gt;
news:4834268@discussion.autodesk.com...&lt;BR /&gt;
That's what I was afraid of.  You don't happen to know of a way to "tag" the&lt;BR /&gt;
line(s) drawn so they can be quickly erased just prior to the creation of&lt;BR /&gt;
the leader do you?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the fast response!&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHAN taylor=""&gt; wrote in message news:4834009@discussion.autodesk.com...&lt;BR /&gt;
That is the way the GetPoint method is meant to work. It will only&lt;BR /&gt;
rubberband from the point supplied to where there cursor is until the user&lt;BR /&gt;
selects a point. To do what I think you want you could once NextPoint is&lt;BR /&gt;
selected draw a line between StartPoint &amp;amp; NextPoint and once LastPoint is&lt;BR /&gt;
selected delete the line.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan&lt;/NATHAN&gt;&lt;/PKIRILL&gt;</description>
      <pubDate>Wed, 04 May 2005 13:26:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314825#M43966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314826#M43967</link>
      <description>....I should have read your response before I posted....;)&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message &lt;BR /&gt;
news:4834011@discussion.autodesk.com...&lt;BR /&gt;
You might be able to access the grdraw lisp function&lt;BR /&gt;
using the VL.APPLICATION&lt;/JORGE&gt;</description>
      <pubDate>Wed, 04 May 2005 13:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314826#M43967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314827#M43968</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I would forget the getpoint method and just draw &lt;BR /&gt;
the lines.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Now you have the lines and the points.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"pkirill" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:pkirill@NOSPAMkdcad.com"&amp;gt;pkirill@NOSPAMkdcad.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:4833983@discussion.autodesk.com"&amp;gt;news:4833983@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV id="jive-html-wrapper-div"&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;So I've got my custom leader command almost &lt;BR /&gt;
  perfect (or perfect enough) but I'm missing one thing - that nice rubber band &lt;BR /&gt;
  between my getpoints.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The way I'm doing it is to prompt the user for a &lt;BR /&gt;
  StartPoint, a NextPoint and a LastPoint:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;StartPoint = ThisDrawing.Utility.GetPoint(, vbcr &lt;BR /&gt;
  &amp;amp; "Select leader start point: ")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;NextPoint = &lt;BR /&gt;
  ThisDrawing.Utility.GetPoint(StartPoint, "Select next leader point: &lt;BR /&gt;
  ")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;LastPoint = &lt;BR /&gt;
  ThisDrawing.Utility.GetPoint(NextPoint, "Select last leader point: &lt;BR /&gt;
  ")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Then these go into an array for the &lt;BR /&gt;
  AddLeader...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Its a little unnerving that once you pick the &lt;BR /&gt;
  NextPoint, the "line" between StartPoint and NextPoint disappears. Any ideas &lt;BR /&gt;
  for keeping it or am I going about the whole gepoint thing wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Thanks in advance for any help!&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 May 2005 13:32:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314827#M43968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T13:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314828#M43969</link>
      <description>I'm not familiar with VL.APPLICATION  - know where I can find more info or &lt;BR /&gt;
examples on that?&lt;BR /&gt;
&lt;BR /&gt;
I was able to get grdraw to work using ThisDrawing.SendCommand ("(grdraw... &lt;BR /&gt;
and following it up later with a ThisDrawing.SendCommand("redraw" &amp;amp; vbcr)&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to send a REDRAW via VBA?  I've search the help and this NG &lt;BR /&gt;
and no luck...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message &lt;BR /&gt;
news:4834011@discussion.autodesk.com...&lt;BR /&gt;
You might be able to access the grdraw lisp function&lt;BR /&gt;
using the VL.APPLICATION&lt;BR /&gt;
--&lt;/JORGE&gt;</description>
      <pubDate>Wed, 04 May 2005 13:34:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314828#M43969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T13:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314829#M43970</link>
      <description>&amp;gt;I was able to get grdraw to work using ThisDrawing.SendCommand ("(grdraw... &lt;BR /&gt;
&amp;gt;and following it up later with a ThisDrawing.SendCommand("redraw" &amp;amp; vbcr)&lt;BR /&gt;
&lt;BR /&gt;
In this case just use SendCommand with "LEADER"...?&lt;BR /&gt;
&lt;BR /&gt;
"pkirill" &lt;PKIRILL&gt; wrote in message &lt;BR /&gt;
news:4834353@discussion.autodesk.com...&lt;BR /&gt;
I'm not familiar with VL.APPLICATION  - know where I can find more info or&lt;BR /&gt;
examples on that?&lt;BR /&gt;
&lt;BR /&gt;
I was able to get grdraw to work using ThisDrawing.SendCommand ("(grdraw...&lt;BR /&gt;
and following it up later with a ThisDrawing.SendCommand("redraw" &amp;amp; vbcr)&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to send a REDRAW via VBA?  I've search the help and this NG&lt;BR /&gt;
and no luck...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message&lt;BR /&gt;
news:4834011@discussion.autodesk.com...&lt;BR /&gt;
You might be able to access the grdraw lisp function&lt;BR /&gt;
using the VL.APPLICATION&lt;BR /&gt;
--&lt;/JORGE&gt;&lt;/PKIRILL&gt;</description>
      <pubDate>Wed, 04 May 2005 14:03:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314829#M43970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T14:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314830#M43971</link>
      <description>This post may be of interest to you. http://discussion.autodesk.com/thread.jspa?messageID=3955682&lt;BR /&gt;
I don't think VBA has a REDRAW method. Another alternative is to evaluate the lisp redraw function with VL.APPLICATION.&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Wed, 04 May 2005 23:28:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314830#M43971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-04T23:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314831#M43972</link>
      <description>This looked like fun, so taking a bit of code from that link I came up with &lt;BR /&gt;
this:&lt;BR /&gt;
[code]&lt;BR /&gt;
Sub grdraw_test()&lt;BR /&gt;
Dim pt1, pt2&lt;BR /&gt;
Dim VL As Object&lt;BR /&gt;
Dim VLF As Object&lt;BR /&gt;
Dim VLO As Object&lt;BR /&gt;
Dim drawList As String&lt;BR /&gt;
&lt;BR /&gt;
Set VL = GetInterfaceObject("VL.Application.1") 'or .16 for 2004+&lt;BR /&gt;
Set VLF = VL.ActiveDocument.Functions&lt;BR /&gt;
&lt;BR /&gt;
On Error GoTo Resume_here 'this is just a quick way of handling an "enter" &lt;BR /&gt;
to _&lt;BR /&gt;
                           end the point selection process. A more robust &lt;BR /&gt;
handler _&lt;BR /&gt;
                           shoud be used&lt;BR /&gt;
pt1 = ThisDrawing.Utility.GetPoint(, vbCr &amp;amp; "Start point: ")&lt;BR /&gt;
Do Until Err.Number &amp;lt;&amp;gt; 0&lt;BR /&gt;
    pt2 = ThisDrawing.Utility.GetPoint(pt1, vbCr &amp;amp; "Next point: ")&lt;BR /&gt;
    drawList = "(grdraw " &amp;amp; pt_list(pt1) &amp;amp; " " &amp;amp; pt_list(pt2) &amp;amp; " 7)"&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall(drawList)&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
    pt1 = pt2&lt;BR /&gt;
Loop&lt;BR /&gt;
&lt;BR /&gt;
Resume_here:&lt;BR /&gt;
'do stuff for leader&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall("(redraw)")&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Function pt_list(pt) As String&lt;BR /&gt;
Dim newStr As String&lt;BR /&gt;
newStr = "'(" &amp;amp; pt(0) &amp;amp; " " &amp;amp; pt(1) &amp;amp; ")"&lt;BR /&gt;
pt_list = newStr&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHAN taylor=""&gt; wrote in message news:4835322@discussion.autodesk.com...&lt;BR /&gt;
This post may be of interest to you. &lt;BR /&gt;
http://discussion.autodesk.com/thread.jspa?messageID=3955682&lt;BR /&gt;
I don't think VBA has a REDRAW method. Another alternative is to evaluate &lt;BR /&gt;
the lisp redraw function with VL.APPLICATION.&lt;BR /&gt;
Regards - Nathan&lt;/NATHAN&gt;</description>
      <pubDate>Thu, 05 May 2005 00:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314831#M43972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T00:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314832#M43973</link>
      <description>Kewl little piece of code, muckracker..........thanks, much, for posting. &lt;BR /&gt;
Very nice example of solving several issues I've had.&lt;BR /&gt;
&lt;BR /&gt;
"muckraker" &lt;NO_SPAM&gt; wrote in message &lt;BR /&gt;
news:4835378@discussion.autodesk.com...&lt;BR /&gt;
This looked like fun, so taking a bit of code from that link I came up with&lt;BR /&gt;
this:&lt;BR /&gt;
[code]&lt;BR /&gt;
Sub grdraw_test()&lt;BR /&gt;
Dim pt1, pt2&lt;BR /&gt;
Dim VL As Object&lt;BR /&gt;
Dim VLF As Object&lt;BR /&gt;
Dim VLO As Object&lt;BR /&gt;
Dim drawList As String&lt;BR /&gt;
&lt;BR /&gt;
Set VL = GetInterfaceObject("VL.Application.1") 'or .16 for 2004+&lt;BR /&gt;
Set VLF = VL.ActiveDocument.Functions&lt;BR /&gt;
&lt;BR /&gt;
On Error GoTo Resume_here 'this is just a quick way of handling an "enter"&lt;BR /&gt;
to _&lt;BR /&gt;
                           end the point selection process. A more robust&lt;BR /&gt;
handler _&lt;BR /&gt;
                           shoud be used&lt;BR /&gt;
pt1 = ThisDrawing.Utility.GetPoint(, vbCr &amp;amp; "Start point: ")&lt;BR /&gt;
Do Until Err.Number &amp;lt;&amp;gt; 0&lt;BR /&gt;
    pt2 = ThisDrawing.Utility.GetPoint(pt1, vbCr &amp;amp; "Next point: ")&lt;BR /&gt;
    drawList = "(grdraw " &amp;amp; pt_list(pt1) &amp;amp; " " &amp;amp; pt_list(pt2) &amp;amp; " 7)"&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall(drawList)&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
    pt1 = pt2&lt;BR /&gt;
Loop&lt;BR /&gt;
&lt;BR /&gt;
Resume_here:&lt;BR /&gt;
'do stuff for leader&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall("(redraw)")&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Function pt_list(pt) As String&lt;BR /&gt;
Dim newStr As String&lt;BR /&gt;
newStr = "'(" &amp;amp; pt(0) &amp;amp; " " &amp;amp; pt(1) &amp;amp; ")"&lt;BR /&gt;
pt_list = newStr&lt;BR /&gt;
End Function&lt;/NO_SPAM&gt;</description>
      <pubDate>Fri, 06 May 2005 12:57:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314832#M43973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-06T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rubberband between GETPOINTS?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314833#M43974</link>
      <description>Very nice - great education.  Thank for posting the code!&lt;BR /&gt;
&lt;BR /&gt;
Paul&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"muckraker" &lt;NO_SPAM&gt; wrote in message &lt;BR /&gt;
news:4835378@discussion.autodesk.com...&lt;BR /&gt;
This looked like fun, so taking a bit of code from that link I came up with&lt;BR /&gt;
this:&lt;BR /&gt;
[code]&lt;BR /&gt;
Sub grdraw_test()&lt;BR /&gt;
Dim pt1, pt2&lt;BR /&gt;
Dim VL As Object&lt;BR /&gt;
Dim VLF As Object&lt;BR /&gt;
Dim VLO As Object&lt;BR /&gt;
Dim drawList As String&lt;BR /&gt;
&lt;BR /&gt;
Set VL = GetInterfaceObject("VL.Application.1") 'or .16 for 2004+&lt;BR /&gt;
Set VLF = VL.ActiveDocument.Functions&lt;BR /&gt;
&lt;BR /&gt;
On Error GoTo Resume_here 'this is just a quick way of handling an "enter"&lt;BR /&gt;
to _&lt;BR /&gt;
                           end the point selection process. A more robust&lt;BR /&gt;
handler _&lt;BR /&gt;
                           shoud be used&lt;BR /&gt;
pt1 = ThisDrawing.Utility.GetPoint(, vbCr &amp;amp; "Start point: ")&lt;BR /&gt;
Do Until Err.Number &amp;lt;&amp;gt; 0&lt;BR /&gt;
    pt2 = ThisDrawing.Utility.GetPoint(pt1, vbCr &amp;amp; "Next point: ")&lt;BR /&gt;
    drawList = "(grdraw " &amp;amp; pt_list(pt1) &amp;amp; " " &amp;amp; pt_list(pt2) &amp;amp; " 7)"&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall(drawList)&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
    pt1 = pt2&lt;BR /&gt;
Loop&lt;BR /&gt;
&lt;BR /&gt;
Resume_here:&lt;BR /&gt;
'do stuff for leader&lt;BR /&gt;
    Set VLO = VLF.Item("read").funcall("(redraw)")&lt;BR /&gt;
    VLF.Item("eval").funcall VLO&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Function pt_list(pt) As String&lt;BR /&gt;
Dim newStr As String&lt;BR /&gt;
newStr = "'(" &amp;amp; pt(0) &amp;amp; " " &amp;amp; pt(1) &amp;amp; ")"&lt;BR /&gt;
pt_list = newStr&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHAN taylor=""&gt; wrote in message news:4835322@discussion.autodesk.com...&lt;BR /&gt;
This post may be of interest to you.&lt;BR /&gt;
http://discussion.autodesk.com/thread.jspa?messageID=3955682&lt;BR /&gt;
I don't think VBA has a REDRAW method. Another alternative is to evaluate&lt;BR /&gt;
the lisp redraw function with VL.APPLICATION.&lt;BR /&gt;
Regards - Nathan&lt;/NATHAN&gt;&lt;/NO_SPAM&gt;</description>
      <pubDate>Fri, 06 May 2005 19:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/rubberband-between-getpoints/m-p/1314833#M43974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-06T19:29:55Z</dc:date>
    </item>
  </channel>
</rss>

