<?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: Macro draw line parallel to two points with 3 segments in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464829#M113274</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;....&lt;BR /&gt;i have attached an image ....&lt;BR /&gt;&lt;BR /&gt;[image: Inline image 1]&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The image didn't come through....&amp;nbsp;&amp;nbsp;But in the meantime, I notice in Post 1 that you seem to be &lt;EM&gt;using&lt;/EM&gt; USERR2 without having &lt;EM&gt;set&lt;/EM&gt; it, and that you have a GET&lt;EM&gt;ENV&lt;/EM&gt; that I suspect ought to be GET&lt;EM&gt;VAR&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 20:06:42 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2017-10-16T20:06:42Z</dc:date>
    <item>
      <title>Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459080#M113261</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I am trying to use the below macro to draw a line with 3 segments that connects two points, the middle segment runs parrallel and offset to the points and the first and third segments join to each point at either end . The points are of a variable distance. My idea is redefine the ucs along the vector of the points and then select the second point(block) to define LASTPOINT then use the userr1-5 variables to draw the desired polyline but its not quiet working out.&lt;BR /&gt;&lt;BR /&gt;^C^CUCS;\\;SELECT;SI;\setvar;USERR1;$M=$(index,0,$(GETVAR,LASTPOINT));setvar;USERR4;1.156;setvar;USERR3;$(-,$(getvar,USERR2)(,$(getvar,USERR4));PLINE;0,0;@0,1.156;@0,$(GETENV,USERR3);@0,-1.156;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hopefully someone can advise as to my mistakes and help me learn a bit more.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2017 17:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459080#M113261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T17:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459136#M113262</link>
      <description>Post a screenshot of the final result you are trying to achieve, and in it explain what exactly would change (and by what governing factor).&lt;BR /&gt;&lt;BR /&gt;FWIW I believe the variable LASTPOINT cannot call a point from inside the same macro.</description>
      <pubDate>Fri, 13 Oct 2017 18:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459136#M113262</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-10-13T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459172#M113263</link>
      <description>I am not at a desk top right now. The only variable is the distance between&lt;BR /&gt;the two points(or blocks) . Are you sure? if i select Single SI and object&lt;BR /&gt;does this not define the lastpoint and then allow me index the first&lt;BR /&gt;section of it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:17:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459172#M113263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459424#M113264</link>
      <description>&lt;P&gt;I am having a hard time visualising the shape of this 3 sided object, sould&amp;nbsp;it be "U" shaped with the open end the two pick points and the underside offset from those points, or is it something else because your macro contains fixed numbers. The si option of select is used to make a single selection set not a single point, which is confusing. Some visual help on this one will help greatly. And to clarify lastpoint&amp;nbsp;is fine within a macro, but storing and then using variables can be problematic.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 19:51:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459424#M113264</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-10-13T19:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459447#M113265</link>
      <description>Yes thats it exactly as you descibed like a "u" shape.&lt;BR /&gt;If i select a circular block with a base point in the centre it sets&lt;BR /&gt;lastpoint as the base point. The other block is my ucs point (0,0,0) and&lt;BR /&gt;the ucs x plane is aligned along the vector between the two points or&lt;BR /&gt;blocks, i now have the distance between points which i can use to draw the&lt;BR /&gt;second segment of the polyline.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2017 19:59:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459447#M113265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459552#M113266</link>
      <description>&lt;P&gt;and&amp;nbsp;what is the significance of the 1.156 and -1.156&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459552#M113266</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-10-13T20:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459568#M113267</link>
      <description>We sure could use an image to show us what you are drawing (and why)...&lt;BR /&gt;&lt;BR /&gt;Also, are you using the term "block" as in the specific AutoCAD use of the term, or is it a generic meaning?</description>
      <pubDate>Fri, 13 Oct 2017 20:49:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459568#M113267</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-10-13T20:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459612#M113268</link>
      <description>When i get to a desktop i will post an image. Block as in the AutoCAD&lt;BR /&gt;version. I want to draw mutiple lines between 2 points ,max 5, and i am&lt;BR /&gt;sick of drawing a single line between two points then having to offset and&lt;BR /&gt;add vertices and join the end points back to the points. Its about visually&lt;BR /&gt;representing multiple connections between a set of points. Like say 5&lt;BR /&gt;different wires between a switch. If i can get one that offsets&lt;BR /&gt;automatically and returns i can offset that And it will make things easier.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2017 21:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7459612#M113268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T21:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7460040#M113269</link>
      <description>&lt;P&gt;Here's a starter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;^C^Cortho;off;pline;\\;UCS;ob;l;ortho;on;pe;l;e;i;@;n;i;@;x;;&lt;/PRE&gt;
&lt;P&gt;It draws a 3 segment polyline between 2 points and aligns the ucs&amp;nbsp;to that polyline, a macro won't allow&amp;nbsp;a&amp;nbsp;selection to remain highlighted as it finishes. So you need to run the macro (pick your two points). And then go back and select the new polyline and stretch the middle grip where you need it. Not 100% yet but when you post some more info it might help improve on the idea.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 06:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7460040#M113269</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-10-14T06:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7463011#M113270</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;..Like say 5 different wires between a switch...&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Any reason these cannot be 5-different blocks you just insert when you need them? How many variations are there truly likely to be?</description>
      <pubDate>Mon, 16 Oct 2017 12:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7463011#M113270</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-10-16T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464461#M113271</link>
      <description>&lt;P&gt;Are you running AutoCAD LT or a full version that supports AutoLisp?&lt;/P&gt;
&lt;P&gt;If the latter, then it's very simple.&amp;nbsp; Is the offset always a constant value, or do you want to be prompted to enter a value?&amp;nbsp; Do you want the polyline to be created on a certain layer, or just use the current layer?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464461#M113271</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-10-16T18:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464631#M113272</link>
      <description>The switch and wire was an example i used to give some idea this is not&lt;BR /&gt;actually what i use it for. The direction and length of the lines between&lt;BR /&gt;points are always different.&lt;BR /&gt;&lt;BR /&gt;Going back to my original post am i completely off? or is it something that&lt;BR /&gt;could potentially work&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am running autoCAD lt.&lt;BR /&gt;&lt;BR /&gt;i have attached an image showing what my end result is. the original&lt;BR /&gt;distance of 1.156 was the suitable length of the first and last segment&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[image: Inline image 1]&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464631#M113272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-16T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464652#M113273</link>
      <description>&lt;P&gt;My apologies to you.&amp;nbsp; If you are running only LT, I can't help you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464652#M113273</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-10-16T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464829#M113274</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;....&lt;BR /&gt;i have attached an image ....&lt;BR /&gt;&lt;BR /&gt;[image: Inline image 1]&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The image didn't come through....&amp;nbsp;&amp;nbsp;But in the meantime, I notice in Post 1 that you seem to be &lt;EM&gt;using&lt;/EM&gt; USERR2 without having &lt;EM&gt;set&lt;/EM&gt; it, and that you have a GET&lt;EM&gt;ENV&lt;/EM&gt; that I suspect ought to be GET&lt;EM&gt;VAR&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7464829#M113274</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-16T20:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7466140#M113275</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/413832iF4E69783A35AC97F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the help so far guys.&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/545279"&gt;@steven-g&lt;/a&gt;&amp;nbsp;i have used yours and it is almost what i need but it would be ideal if i could have it more like above. When you initiate the add vertex command can i specify where to put the new vertices along the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See above this is what i need if possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 08:12:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7466140#M113275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T08:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7466264#M113276</link>
      <description>&lt;P&gt;This macro&lt;/P&gt;
&lt;PRE&gt;^C^Cortho;off;pline;\\;UCS;ob;l;ortho;on;pe;l;e;i;\i;\;x;;&lt;/PRE&gt;
&lt;P&gt;Would allow you to select 4 points in the order shown below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pick4.jpg" style="width: 327px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/413869i2426C65E0453A0AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pick4.jpg" alt="Pick4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 09:01:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7466264#M113276</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-10-17T09:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467573#M113277</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/545279"&gt;@steven-g&lt;/a&gt;&amp;nbsp;after playing around with yours i came up with this which is what i need&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^Cortho;off;pline;\\;UCS;ob;l;ortho;on;pe;l;e;i;@1,1;x;r;e;i;@-1,1;x;;ucs;w&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467573#M113277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T15:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467605#M113278</link>
      <description>Spoke too soon &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it only works in certain directions</description>
      <pubDate>Tue, 17 Oct 2017 15:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467605#M113278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467864#M113279</link>
      <description>&lt;P&gt;What do you mean by that "certain directions"&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 16:14:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467864#M113279</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-10-17T16:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro draw line parallel to two points with 3 segments</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467899#M113280</link>
      <description>Try it your self and draw multiple lines in different directions , i get varying results sometimes the line is inverted and other times it works.</description>
      <pubDate>Tue, 17 Oct 2017 16:21:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-draw-line-parallel-to-two-points-with-3-segments/m-p/7467899#M113280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T16:21:10Z</dc:date>
    </item>
  </channel>
</rss>

