<?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 LENGTHEN in VBA without using SendCommand in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622493#M35018</link>
    <description>I have several polylines which consist of many lines and arcs joined together. I need to trim these polylines to specific lengths and then offset them. In AutoCAD, I use the LENGTHEN command, with the Total option and then the OFFSET command. &lt;BR /&gt;
&lt;BR /&gt;
In my VBA routine to automate this process, I tried using SendCommand to do the same, but the polyline length is not updated until my VBA has finished running. If I check the length of the polyline after executing the LENGTHEN command, it is still the original length, but once I end my program, it is updated to be the total length I specified. Because the length is not updated, my offset polylines are the original length, not the new total length specified. &lt;BR /&gt;
&lt;BR /&gt;
I have tried updating the object, regenerating the drawing, everything I can think of to update the polyline after executing the SendCommand. &lt;BR /&gt;
&lt;BR /&gt;
Any ideas or alternate VBA methods (without using SendCommand) to accomplish the same procedure would be greatly appreciated. &lt;BR /&gt;
&lt;BR /&gt;
TIA, &lt;BR /&gt;
Matt</description>
    <pubDate>Mon, 24 Apr 2006 16:43:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-04-24T16:43:38Z</dc:date>
    <item>
      <title>LENGTHEN in VBA without using SendCommand</title>
      <link>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622493#M35018</link>
      <description>I have several polylines which consist of many lines and arcs joined together. I need to trim these polylines to specific lengths and then offset them. In AutoCAD, I use the LENGTHEN command, with the Total option and then the OFFSET command. &lt;BR /&gt;
&lt;BR /&gt;
In my VBA routine to automate this process, I tried using SendCommand to do the same, but the polyline length is not updated until my VBA has finished running. If I check the length of the polyline after executing the LENGTHEN command, it is still the original length, but once I end my program, it is updated to be the total length I specified. Because the length is not updated, my offset polylines are the original length, not the new total length specified. &lt;BR /&gt;
&lt;BR /&gt;
I have tried updating the object, regenerating the drawing, everything I can think of to update the polyline after executing the SendCommand. &lt;BR /&gt;
&lt;BR /&gt;
Any ideas or alternate VBA methods (without using SendCommand) to accomplish the same procedure would be greatly appreciated. &lt;BR /&gt;
&lt;BR /&gt;
TIA, &lt;BR /&gt;
Matt</description>
      <pubDate>Mon, 24 Apr 2006 16:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622493#M35018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-24T16:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: LENGTHEN in VBA without using SendCommand</title>
      <link>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622494#M35019</link>
      <description>The SendCommand method is asyncronous. If you need the updating to be &lt;BR /&gt;
syncronous. You'll have to reproduce what the lengthen command is doing &lt;BR /&gt;
using vba.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----</description>
      <pubDate>Mon, 24 Apr 2006 16:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622494#M35019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-24T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: LENGTHEN in VBA without using SendCommand</title>
      <link>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622495#M35020</link>
      <description>I don't think the Lengthen command itself is available in VBA, unless I missed it.  How would I reproduce it using other commands?</description>
      <pubDate>Mon, 24 Apr 2006 16:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622495#M35020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-24T16:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: LENGTHEN in VBA without using SendCommand</title>
      <link>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622496#M35021</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Calculate the coordinates of the vertices in their new location and set the &lt;BR /&gt;
coordinates of the polyline to the results of your computations.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;MCAM&gt; wrote in message news:5152355@discussion.autodesk.com...&lt;BR /&gt;
I don't think the Lengthen command itself is available in VBA, unless I &lt;BR /&gt;
missed it.  How would I reproduce it using other commands?&lt;/MCAM&gt;</description>
      <pubDate>Mon, 24 Apr 2006 20:57:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/lengthen-in-vba-without-using-sendcommand/m-p/1622496#M35021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-24T20:57:22Z</dc:date>
    </item>
  </channel>
</rss>

