<?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: Lisp Routine using the Measure command in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563064#M142870</link>
    <description>&lt;P&gt;rodb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your code, works, you'll have to change the 'measure' prompt &lt;SPAN class="hps"&gt;sequence&lt;/SPAN&gt;...&lt;/P&gt;
&lt;P&gt;i.e.&lt;/P&gt;
&lt;PRE&gt;(setq ep (entlast))
(setq seglen (getdist "\nSegment length"))
(command "measure" ep "Block" "tapemarks" "_Y" seglen)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll have to &lt;SPAN class="hps"&gt;answer&lt;/SPAN&gt; to&lt;/P&gt;
&lt;P&gt;Align block with object? [Yes/No] &amp;lt;Y&amp;gt;:&lt;/P&gt;
&lt;P&gt;with yes ou no, or &lt;SPAN class="hps"&gt;simply&lt;/SPAN&gt; "" ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My 'demo' was just an &lt;SPAN class="hps alt-edited"&gt;attempt to demonstrate&lt;/SPAN&gt; that &lt;SPAN class="hps"&gt;providing&lt;/SPAN&gt; to the measure command, a list with a ename and a point, we can force the measure from the end, or from the start, but &lt;SPAN class="hps"&gt;providing&lt;/SPAN&gt; to the measure command only the ename, the comand will measure from start...&lt;/P&gt;
&lt;P&gt;And &lt;SPAN class="hps"&gt;we should always&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;validate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the data, before using it &lt;SPAN class="hps"&gt;as an argument...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2015 11:11:44 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2015-03-30T11:11:44Z</dc:date>
    <item>
      <title>Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562007#M142862</link>
      <description>&lt;P&gt;Can you use Lisp to Measure a Polyline without having to select it? Something like&lt;/P&gt;&lt;P&gt;Having just drawn the Lpoly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq ep enget)&lt;/P&gt;&lt;P&gt;(setq space (getint "\n Enter spacing"))&lt;/P&gt;&lt;P&gt;(command "measure" ep Block "myblock" space "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AutoCAD seems to insist on making you select the object to measure manually. Its always been a problem for me.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 18:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562007#M142862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-28T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562097#M142863</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Can you use Lisp to Measure a Polyline without having to select it? Something like&lt;/P&gt;
&lt;P&gt;Having just drawn the Lpoly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq ep enget)&lt;/P&gt;
&lt;P&gt;(setq space (getint "\n Enter spacing"))&lt;/P&gt;
&lt;P&gt;(command "measure" ep Block "myblock" space "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AutoCAD seems to insist on making you select the object to measure manually. Its always been a problem for me.....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you've just drawn it, that first line should be&lt;/P&gt;
&lt;P&gt;(setq ep &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;(entlast)&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to select it, but not &lt;EM&gt;within&lt;/EM&gt; the Measure command, and have it fed into that, try:&lt;/P&gt;
&lt;P&gt;(setq ep &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;en&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;t&lt;/STRONG&gt;&lt;/FONT&gt;get&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;(setq space (getint "\n Enter spacing"))&lt;/P&gt;
&lt;P&gt;(command "measure" &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(car&lt;/STRONG&gt;&lt;/FONT&gt; ep&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;Block&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;"&lt;/FONT&gt;&lt;/STRONG&gt; "myblock" space "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read about what (entget) actually &lt;EM&gt;returns&lt;/EM&gt; to see why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would think (get&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;dist&lt;/STRONG&gt;&lt;/FONT&gt;) is a better function for the spacing, since it allows other-than-whole-number values that (get&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt;&lt;/STRONG&gt;) won't, &lt;EM&gt;and&lt;/EM&gt; you have the option to specify the distance either by typing something or picking two points on-screen.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 20:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562097#M142863</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-03-28T20:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562424#M142864</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run this&lt;/P&gt;&lt;P&gt;(setq ep (entlast))&lt;BR /&gt;(setq space (getint "\n Enter spacing"))&lt;BR /&gt;(command "measure" (car ep) "Block" "myblock" space "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this.&lt;/P&gt;&lt;P&gt;Select object to measure: ; error: bad argument type: consp &amp;lt;Entity name: 7ffffb0a4c0&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the block myblock in the dwg.&lt;/P&gt;&lt;P&gt;If I do this&lt;/P&gt;&lt;P&gt;!ep&lt;/P&gt;&lt;P&gt;I get&lt;/P&gt;&lt;P&gt;&amp;lt;Entity name: 7ffffb0a4c0&amp;gt;&lt;/P&gt;&lt;P&gt;If I do this&lt;/P&gt;&lt;P&gt;(setq check (car ep))&lt;/P&gt;&lt;P&gt;I get this&lt;/P&gt;&lt;P&gt;; error: bad argument type: consp &amp;lt;Entity name: 7ffffb0a4c0&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I don't understand is that this works perfectly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "area" "e" ep)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "chprop" ep "" "c" "30" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "pedit" ep "w" llwid "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "chprop" ep "" "LT" "LL" "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its just the measure command that won't accept ep passed to the select objects command.&lt;/P&gt;&lt;P&gt;I don't want to pause to manually select the pline because its part of a much larger program and it may even be difficult to find the last drawn pline. And I also want to force the space variable to only accept integers and not accept two points either. You have to type it in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2015 14:59:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562424#M142864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-29T14:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562671#M142865</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I run this&lt;/P&gt;
&lt;P&gt;(setq ep (entlast))&lt;BR /&gt;(setq space (getint "\n Enter spacing"))&lt;BR /&gt;(command "measure" (car ep) "Block" "myblock" space "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get this.&lt;/P&gt;
&lt;P&gt;Select object to measure: ; error: bad argument type: consp &amp;lt;Entity name: 7ffffb0a4c0&amp;gt;&lt;/P&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its just the measure command that won't accept ep passed to the select objects command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't want to pause to manually select the pline&amp;nbsp;... and it may even be difficult to find the last drawn pline. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I should changed your 'enget' to &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;en&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;tsel)&lt;/STRONG&gt;&lt;/FONT&gt; rather than just adding the t and parentheses to&amp;nbsp;make &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;en&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;t&lt;/STRONG&gt;&lt;/FONT&gt;get&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;FONT color="#000000"&gt; [I just ran with the visual of the misspelling of a function name and its not having parentheses, without noticing it was also&amp;nbsp;the &lt;EM&gt;wrong function&lt;/EM&gt; for the purpose], and I should have&lt;/FONT&gt;&lt;/FONT&gt; have&amp;nbsp;suggested reading about (entsel)&amp;nbsp;instead of (entget).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You've mixed together elements of two different suggestions.&amp;nbsp; The (ent&lt;STRONG&gt;last&lt;/STRONG&gt;) function returns an &lt;EM&gt;entity name&lt;/EM&gt;; (ent&lt;STRONG&gt;sel&lt;/STRONG&gt;) returns a &lt;EM&gt;list&lt;/EM&gt; of an entity name &lt;EM&gt;and&lt;/EM&gt; the point at which it was selected.&amp;nbsp; The Measure command is going to require that you give it an entity name.&amp;nbsp;&amp;nbsp;I suggested using (ent&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;last&lt;/STRONG&gt;&lt;/FONT&gt;) "If you've just drawn it," because of your prefacing your code with "Having just drawn the Lpoly."&amp;nbsp; That would put the last-drawn entity's name into the 'ep' variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggested the code that uses &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(car&lt;/STRONG&gt; &lt;/FONT&gt;ep&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt; only "If you want to select it," which I assume would be needed if it's &lt;EM&gt;not&lt;/EM&gt; necessarily the last-drawn entity.&amp;nbsp; That, after using the should-have-said (entsel) rather than (entget),&amp;nbsp;pulls the entity name out of the list that (entsel) returns, to give it to the Measure command.&amp;nbsp; In your code above, where 'ep' is &lt;EM&gt;already&lt;/EM&gt; an entity name as returned by (entlast), Measure would accept &lt;EM&gt;just&lt;/EM&gt; ep rather than (car ep). &amp;nbsp;[That's assuming, of course, that&amp;nbsp;the last entity is something Measure can be applied to.]&amp;nbsp; The error message is because (car) is looking for the first item in a&lt;EM&gt; list&lt;/EM&gt; [that's what 'consp' tests for], and the entity name in&amp;nbsp;'ep' &lt;EM&gt;isn't&lt;/EM&gt; a list.&amp;nbsp; The 'ep' variable will contain a list if it's set by (ent&lt;EM&gt;sel&lt;/EM&gt;) instead, but that requires User selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your last sentence quoted above, that conflicts with your original post in which you talk about having just drawn it.&amp;nbsp; If it may &lt;EM&gt;not&lt;/EM&gt; be the last thing drawn, then I don't see how you're going to identify it &lt;EM&gt;without&lt;/EM&gt; manually selecting it, unless, for example, it will&amp;nbsp;always be at exactly the same location, or will be the only thing on its Layer, or there's something else about it that can distinguish it from everything else.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2015 23:45:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562671#M142865</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-03-29T23:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562781#M142866</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Can you use Lisp to Measure a Polyline without having to select it? Something like&lt;/P&gt;&lt;P&gt;Having just drawn the Lpoly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq ep enget)&lt;/P&gt;&lt;P&gt;(setq space (getint "\n Enter spacing"))&lt;/P&gt;&lt;P&gt;(command "measure" ep Block "myblock" space "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AutoCAD seems to insist on making you select the object to measure manually. Its always been a problem for me.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Logically what you're trying to do will not work.&lt;/P&gt;&lt;P&gt;Without selecting a lwpline you can only measure it if you know its entity name.&lt;/P&gt;&lt;P&gt;An entity name is something like:&lt;/P&gt;&lt;PRE&gt;Entity name: 7ffffb1c980&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 04:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562781#M142866</guid>
      <dc:creator>BeKirra</dc:creator>
      <dc:date>2015-03-30T04:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562890#M142867</link>
      <description>&lt;P&gt;I'm sorry I have not been able to clearly explain my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I definately do not want to have to select the polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works with all these commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ep (entlast))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "area" "e" ep)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "chprop" ep "" "c" "30" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "pedit" ep "w" llwid "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "chprop" ep "" "LT" "LL" "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All those commands also require you to pick an object but by using "ep" you don't have to pick anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not work&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(setq ep (entlast))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(setq seglen (getint "\nSegment length"))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "measure" ep "Block" "tapemarks" seglen "")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Both Measure and Divide do not accept ep so they must expect something else unlike the other commands above. They also expect only one object but that applies to area as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do you pass the last object drawn to the measure command without manually selecting it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;!ep returns this &amp;lt;Entity name: 7ffffb0a0a0&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been a thorn in my side for many years so frustrating why have they made measure work differently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 07:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562890#M142867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562932#M142868</link>
      <description>&lt;P&gt;Hi rodb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as a demo, I did add some if's and prompts to &lt;SPAN class="hps alt-edited"&gt;show&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;what has failed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;Change myblock, to the correct one...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ ans ent lastpoly pt_lst space)
  (if (and (setq lastpoly (entlast))
           (setq ent (entget lastpoly))
      );; and
    (if (= (cdr (assoc 0 ent)) "LWPOLYLINE")
      (if (tblsearch "BLOCK" "myblock")
        (if (progn (initget 6)
                   (setq space (getdist "\n Enter spacing: "))
            )
          (if (&amp;gt;= (vlax-curve-getDistAtParam lastpoly (vlax-curve-getEndParam lastpoly)) space)
            (progn
              (setq pt_lst (vl-remove-if-not '(lambda (x) (member (car x) '(10))) ent))
              (initget "Start End")
              (setq ans (getkword "\n Measure polyline, from start or from end [Start End] &amp;lt;exit&amp;gt;: "))
              (cond ((and ans
                          (wcmatch ans "Start")
                     )
                     (command "_.measure" (list lastpoly (cdr (car pt_lst))) "_B" "myblock" "_Y" space)
                     (prompt "\nLast LwPolyline was mesured from the beginning... ")
                    )
                    ((and ans
                          (wcmatch ans "End")
                     )
                     (command "_.measure" (list lastpoly (cdr (last pt_lst))) "_B" "myblock" "_Y" space)
                     (prompt "\nLast LwPolyline was mesured from the end... ")
                    )
                    (T
                     (prompt "\n Exiting... ")
                    )
              )
            )
            (prompt "\n Spacing longer than LwPolyline ... ")
          );; if
          (prompt "\n User didn't enter spacing... ")
        );; if
        (prompt "\n Myblock wasn't found in drawing database... ")
      );; if
      (prompt "\n Last entity is not a LwPolyline... ")
    );; if
    (prompt "\n This is an empty dwg, there is no last entity... ")
  );; if
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 08:35:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5562932#M142868</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-03-30T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563045#M142869</link>
      <description>&lt;P&gt;Oh my Henrique lol !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I take it then a simple measure ep is just not possible! How I wish Autodesk had made the measure/divide command work the same way as so many other commands in simple old lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to go to work now and will print out your answer to take with me on the train.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for all your trouble I can see my porgram is going to get a lot bigger amd more complicated now, for your reference this is the old program which works fine that I want to change to measure the polyline into segments, mark the segments and place multiple blocks on top of each other on the start point containing the circuit and length and wattage of each segment.....all of which is fairly easy to do except for the measure with block command....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;Led Flex tape&lt;BR /&gt;(defun restore ()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;restore variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "layer" "set" cly "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "cmdecho" cmd)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "expert" etp)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "attdia" atd)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "plinegen" plgen)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq *error* olderr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;BR /&gt;(defun trap (er)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;error trapping&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "\nPROGRAM ABORTED ")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ er)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "layer" "set" cly "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "cmdecho" cmd)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "expert" etp)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "attdia" atd)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "plinegen" plgen)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq *error* olderr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;BR /&gt;(defun c:LL(/ lgth watts textwatts rlgth)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (graphscr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "cmdecho" 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ep (entlast))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (equal llwid nil)(setq llwid 30))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(if (equal llwts nil)(setq llwts 4.8))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(prompt"\nSet the Wattage per meter..&amp;lt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ llwts)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq chwts (getreal))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (not (equal chwts nil))(setq llwts chwts))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt"\nEnter width for LED Light..&amp;lt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ llwid)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq chwid (getreal))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (not (equal chwid nil))(setq llwid chwid))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq blkno 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq blk "LEDFLEX")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq blkname (strcat blk (itoa blkno)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (while (tblsearch "block" blkname)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq blkno (+ 1 blkno))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq blkname (strcat blk (itoa blkno)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "area" "e" ep)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "chprop" ep "" "c" "30" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "pedit" ep "w" llwid "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq lgth (getvar "perimeter"))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "chprop" ep "" "LT" "LL" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq fixlgth (fix lgth)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;rlgth (itoa fixlgth)&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; watts(* (/ fixlgth 1000.0) llwts)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; watts(fix watts)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;textwatts (itoa watts))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "layer" "S" cly "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq bp (getpoint "\nPick Basepoint for Attribute Block..."))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "insert" "LVLED_018" bp userr5 userr5 "" "" "" "" textwatts "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" rlgth "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "-block" blkname bp ep "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(command "-insert" blkname bp "1" "1" "0")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt "\nTotal length of LED tape light is ")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ rlgth)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt "\nTotal watts of LED tape light is ")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ textwatts)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (restore)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(defun ledflex(/ ln)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (graphscr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq osm (getvar "osmode")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd (getvar "cmdecho")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cly (getvar "clayer")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etp (getvar "expert")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; atd (getvar "attdia")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plgen (getvar "plinegen")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; olderr *error*&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *error* trap)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "cmdecho" 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "attdia" 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "expert" 4)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "plinegen" 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ln (tblsearch "layer" "AQ_LOWVOLTS"))&amp;nbsp;&amp;nbsp; ;check for layer &amp;amp; make it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (= ln nil)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "layer" "M" "AQ_LOWVOLTS" "C" "GREEN" "" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "layer" "ON" "AQ_LOWVOLTS" "THAW" "AQ_LOWVOLTS" "S" "AQ_LOWVOLTS" "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt"draw your LED rope light using Pline arcs and lines then type LL")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt "\nPLINE")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "PLINE")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:50:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563045#M142869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T10:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563064#M142870</link>
      <description>&lt;P&gt;rodb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your code, works, you'll have to change the 'measure' prompt &lt;SPAN class="hps"&gt;sequence&lt;/SPAN&gt;...&lt;/P&gt;
&lt;P&gt;i.e.&lt;/P&gt;
&lt;PRE&gt;(setq ep (entlast))
(setq seglen (getdist "\nSegment length"))
(command "measure" ep "Block" "tapemarks" "_Y" seglen)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll have to &lt;SPAN class="hps"&gt;answer&lt;/SPAN&gt; to&lt;/P&gt;
&lt;P&gt;Align block with object? [Yes/No] &amp;lt;Y&amp;gt;:&lt;/P&gt;
&lt;P&gt;with yes ou no, or &lt;SPAN class="hps"&gt;simply&lt;/SPAN&gt; "" ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My 'demo' was just an &lt;SPAN class="hps alt-edited"&gt;attempt to demonstrate&lt;/SPAN&gt; that &lt;SPAN class="hps"&gt;providing&lt;/SPAN&gt; to the measure command, a list with a ename and a point, we can force the measure from the end, or from the start, but &lt;SPAN class="hps"&gt;providing&lt;/SPAN&gt; to the measure command only the ename, the comand will measure from start...&lt;/P&gt;
&lt;P&gt;And &lt;SPAN class="hps"&gt;we should always&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;validate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the data, before using it &lt;SPAN class="hps"&gt;as an argument...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563064#M142870</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-03-30T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563105#M142871</link>
      <description>&lt;P&gt;Yes I really like the way your lisp is so safe always checking along the way that it will be able to work. I must do that much better than I do at present.&lt;/P&gt;&lt;P&gt;I also like the way its possible to start from the end of the polyline too. The next thing I would like to do is to be able to pick an existing polyline block (the pline is turned into a block so that it can be placed on another layer and either that layer is frozen and or the layer the block was made on is frozen) then explode it, measure it, re-work it as segments, re-block it using the same block name on the same layer and re-work the existing block containing the circuit, wattage and length and turn that into multiple blocks each containing the new circuit, wattage and length values but that is for a very rainy day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Must leave for the train back tomorrow eve so I can get started on Wednesday with it and thanks again!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5563105#M142871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5565384#M142872</link>
      <description>&lt;P&gt;Yep it was that I had not checked the sequence of the measure command and had forgotten the align with option. You would think that by now I would have learned to check the command sequence. Especiallt after using the measure and divide command for so many years. I was convinced it was because the measure command worked differently. Just sloppy programming! Thanks to you its sorted now and I can get on with the rest of the program.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 16:25:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5565384#M142872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-31T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine using the Measure command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5565405#M142873</link>
      <description>&lt;P&gt;You're welcome, robd!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 16:35:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-using-the-measure-command/m-p/5565405#M142873</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-03-31T16:35:13Z</dc:date>
    </item>
  </channel>
</rss>

