<?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: AutoCAD - Drawing lines at constant offset using the Draw Line command? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246235#M55106</link>
    <description>&lt;P&gt;You can try this routine. It automates right offset just after a pline is drawn.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp; is how to use a LISP in case you need it.&lt;/P&gt;
&lt;P&gt;If you need the left one too... you'll figure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)&lt;BR /&gt;
(defun c:Poline ( / e p a next f)
  
  (or *poffset*
      (setq *poffset* (abs (getvar 'offsetdist))))
  
  (setq *poffset* (cond ((getreal (strcat "\nSpecify offset &amp;lt;" (rtos *poffset*) "&amp;gt;: "))) (*poffset*)))
  
  (while (or (not next) 						; True on first time, nil on next
	     (setq f (getpoint "\nSpecify start point: ")))		; nil for stop
    (setq next T)
    (command "_.pline")
    (if f (command "_non" f))
    (while (&amp;lt; 0 (getvar 'cmdactive)) (command pause))
    
    (setq e (entlast)
	  p (vlax-curve-getstartPoint e)
	  a (angle '(0 0 0) (vlax-curve-getFirstDeriv e (vlax-curve-getParamAtPoint e p))))
    (command "_.offset" "_e" "_y" *poffset* (list e (trans p 0 1)) (trans (polar p (- a (* pi 0.5)) 1) 0 1) ""))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 14:34:55 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2022-06-20T14:34:55Z</dc:date>
    <item>
      <title>AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245853#M55102</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using AutoCAD 2023 on Windows 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently producing a drawing that has an X-ref base (which I've made to print lightly) and the new lines I'm drawing in various places need to be at a set distance away from the base x-ref geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way (or command) in AutoCAD that allows me to draw (and OSNAP to) a fixed distance away from existing geometry (e.g. 100mm or 150mm or whatever)? So that I can set the value, draw at an offset where I need to, and then set the value back to the default behaviour (e.g. 0) when I'm finished?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My process at the moment is to draw lines matching the existing x-ref geometry and then manually offset these line/polylines by whatever distance required. It would be one less command/sequence if I could "offset" my drawing lines as I create them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245853#M55102</guid>
      <dc:creator>Over-Dose</dc:creator>
      <dc:date>2022-06-20T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245970#M55103</link>
      <description>&lt;P&gt;Explore MLINE, then you possibly explode it.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 11:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245970#M55103</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-06-20T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245986#M55104</link>
      <description>&lt;P&gt;If you have only straight lines (no arcs nor other curves) you can try the MLINE command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The offset of the Mlinestyle should be 1 (see image), the distance from the given geometry can be set by an appropriate scale factor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://autode.sk/3NkwGA9" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt;Click&amp;lt;&amp;lt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 11:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11245986#M55104</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2022-06-20T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246137#M55105</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;+&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952317"&gt;@j.palmeL29YX&lt;/a&gt;&amp;nbsp;- This option came pretty close to what I was hoping to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this isn't entirely worth using, as it leaves me having to do extra steps of exploding and then assigning line/polyline properties after the exploding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: If it was possible to set the one line of the MLINE to defpoints, and then give additional properties to the line you want to see (e.g. global width etc), this would have been a clear winner for what I need right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, close but no cigar I'm afraid. But thanks for the suggestion anyway. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 12:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246137#M55105</guid>
      <dc:creator>Over-Dose</dc:creator>
      <dc:date>2022-06-20T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246235#M55106</link>
      <description>&lt;P&gt;You can try this routine. It automates right offset just after a pline is drawn.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp; is how to use a LISP in case you need it.&lt;/P&gt;
&lt;P&gt;If you need the left one too... you'll figure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)&lt;BR /&gt;
(defun c:Poline ( / e p a next f)
  
  (or *poffset*
      (setq *poffset* (abs (getvar 'offsetdist))))
  
  (setq *poffset* (cond ((getreal (strcat "\nSpecify offset &amp;lt;" (rtos *poffset*) "&amp;gt;: "))) (*poffset*)))
  
  (while (or (not next) 						; True on first time, nil on next
	     (setq f (getpoint "\nSpecify start point: ")))		; nil for stop
    (setq next T)
    (command "_.pline")
    (if f (command "_non" f))
    (while (&amp;lt; 0 (getvar 'cmdactive)) (command pause))
    
    (setq e (entlast)
	  p (vlax-curve-getstartPoint e)
	  a (angle '(0 0 0) (vlax-curve-getFirstDeriv e (vlax-curve-getParamAtPoint e p))))
    (command "_.offset" "_e" "_y" *poffset* (list e (trans p 0 1)) (trans (polar p (- a (* pi 0.5)) 1) 0 1) ""))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:34:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246235#M55106</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-06-20T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246404#M55107</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69219"&gt;@Over-Dose&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... close but no cigar . &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quality of an answer depends on the quality of the question ...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SCNR&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246404#M55107</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2022-06-20T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Drawing lines at constant offset using the Draw Line command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246510#M55108</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952317"&gt;@j.palmeL29YX&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69219"&gt;@Over-Dose&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... close but no cigar . &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The quality of an answer depends on the quality of the question ...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SCNR&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Judging by the fact that two separate responders both recommended the same function/command, would indicate that the quality of the question was absolutely fantastic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the said provided proposal was not entirely useful in this context. That doesn't mean that the command is useless for other instances, just not what I was looking for.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;- Thanks for that. I'll give it a shot when I have some time and revert back with any update if this happens to achieve what I originally asked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 15:07:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/autocad-drawing-lines-at-constant-offset-using-the-draw-line/m-p/11246510#M55108</guid>
      <dc:creator>Over-Dose</dc:creator>
      <dc:date>2022-06-20T15:07:54Z</dc:date>
    </item>
  </channel>
</rss>

