<?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 how to fillet with continuous lines? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10709610#M53580</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="need this area fillet.PNG" style="width: 263px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/981028i725BAE45D4EC47DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="need this area fillet.PNG" alt="need this area fillet.PNG" /&gt;&lt;/span&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i am having trouble with in lisp code. how to get fillet autolisp function to write with this code?why not getting fillet with these two points&amp;nbsp; after the offset while putting the continuous lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:line () (setq p1 (getpoint "\npickt first point:")) (while (/= nil (setq p2 (getpoint p1 "\npick second point: "))) (command "line" p1 p2 "") (setq p1 p2) (command "offset" "0.2" p1 p2 "") (command "fillet" p1 p2 ) ) )&lt;/P&gt;</description>
    <pubDate>Sun, 24 Oct 2021 08:49:52 GMT</pubDate>
    <dc:creator>thsa2501</dc:creator>
    <dc:date>2021-10-24T08:49:52Z</dc:date>
    <item>
      <title>how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10709610#M53580</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="need this area fillet.PNG" style="width: 263px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/981028i725BAE45D4EC47DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="need this area fillet.PNG" alt="need this area fillet.PNG" /&gt;&lt;/span&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i am having trouble with in lisp code. how to get fillet autolisp function to write with this code?why not getting fillet with these two points&amp;nbsp; after the offset while putting the continuous lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:line () (setq p1 (getpoint "\npickt first point:")) (while (/= nil (setq p2 (getpoint p1 "\npick second point: "))) (command "line" p1 p2 "") (setq p1 p2) (command "offset" "0.2" p1 p2 "") (command "fillet" p1 p2 ) ) )&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 08:49:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10709610#M53580</guid>
      <dc:creator>thsa2501</dc:creator>
      <dc:date>2021-10-24T08:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10709781#M53581</link>
      <description>&lt;P&gt;Your p1 and p2 variables are on the original Line, never on the one resulting from the Offset, and by the time it gets to the Fillet command, they're at the &lt;EM&gt;same place&lt;/EM&gt;.&amp;nbsp; So the Offset will go to the side AutoCAD chooses, not necessarily the side you want it to.&amp;nbsp; And the first time, the Line you want to Fillet that Offset result with &lt;EM&gt;doesn't even exist yet&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be worked out with a lot of additional code, the biggest complication being the side to which to Offset and ensuring that always goes the right way with any turn in direction.&amp;nbsp; BUT AutoCAD will figure it all out for you without any custom command, with the &lt;STRONG&gt;MLINE&lt;/STRONG&gt; command.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 11:24:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10709781#M53581</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-10-24T11:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10710746#M53582</link>
      <description>&lt;P&gt;Like Kent why not just draw a &lt;STRONG&gt;pline&lt;/STRONG&gt; then offset ? You can do a pick points in a lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one of many ways to do a pline. The offset will be right to the 1st leg direction, a -ve offset will go left. Close is still valid finish.&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;LI-CODE lang="general"&gt;(defun c:plpts ( / pt)
(setq off (getreal "\nOffset distance + -"))
(setq pt (getpoint "\nStarting point of Pline : "))
(command "_pline" pt)
(while (= (getvar "cmdactive") 1 )
(command (getpoint (getvar 'lastpoint)))
)
(vla-offset (vlax-ename-&amp;gt;vla-object (entlast)) off)
(princ)
)&lt;/LI-CODE&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, 25 Oct 2021 03:55:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10710746#M53582</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-25T03:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10713015#M53583</link>
      <description>&lt;P&gt;Umm, shouldn't that be...&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(command (getpoint "\nNext point: " (getvar 'lastpoint)))&lt;/LI-CODE&gt;
&lt;P&gt;or do you guys from down under just expect the bartender to pass you another Great Northern without prompting?&lt;/P&gt;
&lt;P&gt;And where is the Undo option?&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":confounded_face:"&gt;😖&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 00:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10713015#M53583</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-26T00:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10713205#M53584</link>
      <description>&lt;P&gt;Yes a hint is always a good idea,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:30:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10713205#M53584</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-26T03:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10716849#M53585</link>
      <description>&lt;P&gt;hi kent&lt;/P&gt;&lt;P&gt;sorry for the delay message. thanks for the reply. yes, i agree your point. why additional code need for fillet function?&lt;/P&gt;&lt;P&gt;just not like come offset by given points for fillet.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 10:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10716849#M53585</guid>
      <dc:creator>thsa2501</dc:creator>
      <dc:date>2021-10-27T10:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10716861#M53586</link>
      <description>&lt;P&gt;hi sea_haven&lt;/P&gt;&lt;P&gt;thanks for the reply. yes, I totally forget to put the pline there.&lt;/P&gt;&lt;P&gt;i would like to know. why put their function? i totally confused. can you clarify?&lt;/P&gt;&lt;PRE&gt;(while (= (getvar "cmdactive") 1 )
(command (getpoint (getvar 'lastpoint)))
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 10:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10716861#M53586</guid>
      <dc:creator>thsa2501</dc:creator>
      <dc:date>2021-10-27T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717245#M53587</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11592198"&gt;@thsa2501&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;.... why additional code need for fillet function? ...&lt;/SPAN&gt;.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Because, for example, the things you want to Fillet are the results from Offsetting the things that you actually draw.&amp;nbsp; That means code would be required after each Offset to get information [such as endpoints] about the last object, and save it somewhere, and then after the next source Line is drawn and Offset, more code to get information about what is now the last object, so that the Fillet operation can use some location on each of those newer Lines.&amp;nbsp; But it can't use just any point on them.&amp;nbsp; In this situation [with the white being the ones you draw and the red being the results of Offsetting those]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1635338661002.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/982379iD3B6AC737870809A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1635338661002.png" alt="Kent1Cooper_0-1635338661002.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;using just the start point or the end point of each red Line could result in any of these:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_3-1635339091365.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/982386i4AC05CD223FC8DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_3-1635339091365.png" alt="Kent1Cooper_3-1635339091365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or it might even "see" one of the white Lines in Filleting.&amp;nbsp; So code would be needed to find some unambiguous place on each red Line that is not on a white Line, such as its midpoint, and even that could lie on some other object that the Fillet command might see instead of the right one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_2-1635338926961.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/982384i56484356C9CBB7FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_2-1635338926961.png" alt="Kent1Cooper_2-1635338926961.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have you tried &lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;STRONG&gt;MLINE&lt;/STRONG&gt;&lt;/FONT&gt; yet?&amp;nbsp; It will do what you want, with no custom command definition.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717245#M53587</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-10-27T12:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717467#M53588</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;,&lt;BR /&gt;It's not quite as difficult as that.&lt;BR /&gt;The FILLET command is actually looking for 2 picks, a pick being a list of&lt;BR /&gt;ename and point, exactly as returned by entsel.  So as long as the picks&lt;BR /&gt;provided include the ename of the offsets, you don't need to worry about&lt;BR /&gt;"seeing" other objects.&lt;BR /&gt;But I do think the points need to be more than the radius away from the&lt;BR /&gt;intersection point.&lt;BR /&gt;&lt;BR /&gt;I don't remember how this started, but couldn't he achieve the correct&lt;BR /&gt;result by joining the original lines into a polyline and offsetting with&lt;BR /&gt;OFFSETGAPTYPE set to 1?</description>
      <pubDate>Wed, 27 Oct 2021 14:01:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717467#M53588</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-27T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717508#M53589</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;.... couldn't he achieve the correct result by joining the original lines into a polyline and offsetting with OFFSETGAPTYPE set to 1?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That raises the question of the shape of Filleted corners.&amp;nbsp; The OP didn't specify or illustrate what is needed.&amp;nbsp; If they should be rounded, and only on outside corners, OFFSETGAPTYPE = 1 would do that.&amp;nbsp; If they should be sharp corners, it should be set to 0, but in that case I still say &lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;MLINE&lt;/FONT&gt; is the way to go.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:18:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10717508#M53589</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-10-27T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10719054#M53590</link>
      <description>&lt;P&gt;Pedit Join, fillet P is not that hard, now offset.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 03:23:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10719054#M53590</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-28T03:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10719707#M53591</link>
      <description>&lt;P&gt;hi kent&amp;nbsp;&lt;/P&gt;&lt;P&gt;i totally agreed with your point. i did not yet use mline. just wanted to know about the fillet function, because the offset function works for me.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10719707#M53591</guid>
      <dc:creator>thsa2501</dc:creator>
      <dc:date>2021-10-28T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10720015#M53592</link>
      <description>Um, you don't need to fillet at all.</description>
      <pubDate>Thu, 28 Oct 2021 12:02:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10720015#M53592</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-28T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to fillet with continuous lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10721842#M53593</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fillet if radius required was pre-empting next question add a radius.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a pline offset from other objects did it for water mains they can cross over sides of roads when going around intersections would do what was requested forgot all about it. Trying to find it. I need to index my lisps.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; draw offsets from points for random shape object making pline
; By Alan H AUG 2019
; Just pick points in sequence then press enter a pline will be drawn

(defun ah:ploffs (/ offdir offd x pt1 pt2 pt3 oldsnap ssp)

  (defun drawline (/ ang pt3 obj)
    (setq ang (angle pt1 pt2))
    (if (= offdir "L")
      (setq pt3 (polar pt2 (+ ang (/ pi 2.0)) 10))
      (setq pt3 (polar pt2 (- ang (/ pi 2.0)) 10))
    )
    (setvar 'osmode 0)
    (command "line" pt1 pt2 "")
    (setq obj (entlast))
    (command "offset" offd obj pt3 "")
    (setq ssp (ssadd (entlast) ssp))
    (command "erase" obj "")
    (setq pt1 pt2)
  )

  (defun swapr-l (/)
    (if (= (strcase offdir) "L")
      (setq offdir "R")
      (setq offdir "L")
    )
    (setvar 'osmode oldsnap)
    (setq pt1 (getpoint "\nPick  next point"))
    (setq pt2 (getpoint "\nPick  next point"))
    (drawline)
  )


; starts here
; add side pick
  (setq oldsnap (getvar 'osmode))
  (setq ssp nil)

  (initget 6 "R L")
  (setq offdir (strcase (getstring "Right or  Left")))
  (setq offd (getreal "Enter offset distance"))


  (setq pt1 (getpoint "pick 1st point"))
  (setq ssp (ssadd))

  (initget 6 "1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k l m n o p q r s t u v w x y z")
  (while (setq pt2 (getpoint "\nPick  next point or [S Swap sides]:&amp;lt;"))
    (cond
      ((= (type pt2) 'LIST) (drawline))
      ((= (type pt2) 'str) (swapr-l))  ; also calls drawlines
      ((= pt2 nil) (quit))
    )
    (setvar 'osmode oldsnap)
    (initget 6 "Swap")
  )

  (setq x 0)
  (repeat (- (sslength ssp) 1)
    (setvar 'filletrad 0)
    (command "fillet" (ssname ssp x) (ssname ssp (1+ x)))
    (setq x (1+ x))
  )

  (setq x 0)
  (command "pedit" (entlast) "Y" "J")
  (repeat (- (sslength ssp) 1)
    (command (ssname ssp x))
    (setq x (1+ x))
  )
  (command "" "")

  (princ)

)
(ah:ploffs)&lt;/LI-CODE&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>Fri, 29 Oct 2021 01:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-fillet-with-continuous-lines/m-p/10721842#M53593</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-29T01:05:46Z</dc:date>
    </item>
  </channel>
</rss>

