<?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: Chamfer 2.0 in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10824040#M51268</link>
    <description>&lt;P&gt;Add this as the very first line.&lt;/P&gt;
&lt;P&gt;(vl-load-com)&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 07:28:56 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2021-12-15T07:28:56Z</dc:date>
    <item>
      <title>Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822529#M51263</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with a small issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in need of a chamfer that makes the below shape (green line). Do you know if AutoCAD can do this or is there any free routine for this? Basically, except the chamfer distances there should be an additional question for the user to insert the "X" values.&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="nicolaearhire10_0-1639496338046.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1001387i940A1F204C61282E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nicolaearhire10_0-1639496338046.png" alt="nicolaearhire10_0-1639496338046.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&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/69526"&gt;@Kent1Cooper&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 15:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822529#M51263</guid>
      <dc:creator>SilentStrike24</dc:creator>
      <dc:date>2021-12-14T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822688#M51264</link>
      <description>&lt;P&gt;That may be possible, but questions arise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Always between things at right angles as in your image?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, should the "short legs" be perpendicular to the original edges [left below], or each parallel to the other edge [right]?&amp;nbsp; Or something else?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1639501396926.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1001416i42275F787DB1D7FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1639501396926.png" alt="Kent1Cooper_0-1639501396926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Applicable to Lines only, or to adjacent line segments of a Polyline?&amp;nbsp; Anything else?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 17:05:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822688#M51264</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-12-14T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822707#M51265</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Small green lines are to be always perpendicular on the original lines and this should be applicable only to lines/polylines, not arcs/splines/etc….&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Only thing that needs to be “asked” is the length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 17:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10822707#M51265</guid>
      <dc:creator>SilentStrike24</dc:creator>
      <dc:date>2021-12-14T17:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10823656#M51266</link>
      <description>&lt;P&gt;Regards&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9927689"&gt;@SilentStrike24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this code helps something. The lines or polylines must be individual, enter appropriate geometric values ​​within the permissible limits.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:chd (/ s s1 s2 pins cc pc1 pc1b pc2 pc2b pc1v pc2v x)
  (setq
    spm (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
  )
  (setq dc (getreal "\nEnter Chamfer distance value: ")
        x  (getreal "\nEnter distance X: ")
  )
  (setq s (ssget '((0 . "*line"))))
  (setq s1 (vlax-ename-&amp;gt;vla-object (ssname s 0))
        s2 (vlax-ename-&amp;gt;vla-object (ssname s 1))
  )
  (setq pins (vla-intersectwith s1 s2 acextendnone))
  (setq cc (vla-addcircle spm
                          pins
                          dc
           )
  )
  (setq pc1  (vla-intersectwith cc s1 acextendnone)
        pc1b (vlax-safearray-&amp;gt;list (vlax-variant-value pc1))
  )
  (setq pc2  (vla-intersectwith cc s2 acextendnone)
        pc2b (vlax-safearray-&amp;gt;list (vlax-variant-value pc2))
  )
  (vla-erase cc)
  (setq l1(vla-addline spm pc1 (setq pc1v (vlax-3d-point (polar pc1b pi x))))
   l2(vla-addline spm
               pc2
               (setq pc2v (vlax-3d-point (polar pc2b (/ (* 3 pi) 2) x)))
  )
 l3(vla-addline spm pc1v pc2v))
  (Foreach x (list l1 l2 l3)
(vla-put-color x 3))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 01:45:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10823656#M51266</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2021-12-15T01:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10824002#M51267</link>
      <description>&lt;P&gt;Thanks for replying&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4920461"&gt;@calderg1000&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code looks ok, it "asks" the right questions, but there's an error as per below screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;error: no function definition: VLAX-ENAME-&amp;gt;VLA-OBJECT&lt;/STRONG&gt;"&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="nicolaearhire10_0-1639551583950.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1001688i30AEA0370EEB9DB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nicolaearhire10_0-1639551583950.png" alt="nicolaearhire10_0-1639551583950.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:03:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10824002#M51267</guid>
      <dc:creator>SilentStrike24</dc:creator>
      <dc:date>2021-12-15T07:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10824040#M51268</link>
      <description>&lt;P&gt;Add this as the very first line.&lt;/P&gt;
&lt;P&gt;(vl-load-com)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/10824040#M51268</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-12-15T07:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12920072#M51269</link>
      <description>&lt;P&gt;its possible for corner trim with chamfer d1 d2 are same value&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 18:44:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12920072#M51269</guid>
      <dc:creator>jaimuthu</dc:creator>
      <dc:date>2024-07-25T18:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12920199#M51270</link>
      <description>&lt;P&gt;Are you saying that CHAMFER doesn't trim the corners, and you are trying to make a routine that does?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's the issue, &lt;FONT color="#0000FF"&gt;you probably just have the &lt;STRONG&gt;TRIMMODE&lt;/STRONG&gt; System Variable set to &lt;STRONG&gt;0&lt;/STRONG&gt;, when it should be set to &lt;STRONG&gt;1&lt;/STRONG&gt;.&amp;nbsp; Then ordinary CHAMFER will trim the corners.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not the issue, explain in more detail.&amp;nbsp; The code is hard to test, because it needs a lot of fixing [is it an AI effort?&amp;nbsp; ChatGPT, for example, is notoriously bad at AutoLisp, so far].&amp;nbsp; But I notice a couple of things to start with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Chamfer distances &lt;EM&gt;should not be in a list&lt;/EM&gt;.&amp;nbsp; Do this instead:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;(command "_.chamfer" "_distance" dc dc)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;which in an AutoLisp&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (command)&lt;/STRONG&gt; &lt;/FONT&gt;function concludes the command, so you need to start it again:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;(command&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; "_.chamfer" "_distance" dc dc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; "_.chamfer" s1 s2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;But s1 and s2 there&amp;nbsp;require &lt;EM&gt;just entity names, not&lt;/EM&gt; VLA objects, and the same is true for some later usages.&amp;nbsp; So you may need to store them in both forms under different variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The TRIM commands near the end should be using 'line' as the first selection [cutting boundary] and 's1'/'s2' as the second, but that's going to need to be a location, not just the object, so it knows which part to Trim off.&amp;nbsp; And they could be in one TRIM command, and they need to conclude it -- all signs of ChatGPT's ignorance of the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But all that may be irrelevant, if the only issue is the &lt;STRONG&gt;TRIMMODE&lt;/STRONG&gt; setting.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 18:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12920199#M51270</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-07-25T18:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923501#M51271</link>
      <description>&lt;P&gt;IGNORE THIS POST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 16:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923501#M51271</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-27T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923562#M51272</link>
      <description>&lt;P&gt;Application ERROR: Invalid&lt;BR /&gt;type sent as command input&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 16:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923562#M51272</guid>
      <dc:creator>jaimuthu</dc:creator>
      <dc:date>2024-07-27T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923564#M51273</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9927689"&gt;@SilentStrike24&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this on for size.&amp;nbsp; It deals with only lines for now, but maybe that's good enough.&lt;/P&gt;&lt;P&gt;Note that it has no error or undo control (easy to add).&lt;/P&gt;&lt;P&gt;It can give you screwy results if the chamfer distance is longer than the hypotenuse (or something like that).&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ch3 ( / d e1 e2 e3 @midp e2o p1 p2 p3)
  (defun @midp (e / ent)
    (setq ent (entget e))
    (mapcar '* '(0.5 0.5)(mapcar '+ (setq p1 (cdr (assoc 10 ent)))(setq p2 (cdr (assoc 11 ent)))))
  )
  (setq e2o vlax-ename-&amp;gt;vla-object)
  (and
    (setq e1 (car (entsel "\nSelect chamfer leg: ")))
    (setq e2 (car (entsel "\nSelect chamfer hypotenuse: ")))
    (not (initget 7))
    (setq d (getdist "\nEnter length of chamfer (perpendicular to leg): "))
    (vl-cmdf "_.offset" d e1 (@midp e2) "")
    (setq e3 (entlast))
    (entmakex
      (list '(0 . "LINE")
        (cons 10 (setq p3 (vlax-invoke (e2o e2) 'intersectwith (e2o e3) 3)))
        (cons 11 (vlax-curve-getclosestpointto e1 p3))
      )
    )
    (if (&amp;lt; (distance p3 p1)(distance p3 p2))
      (entmod (subst (cons 10 p3)(cons 10 p1)(entget e2)))
      (entmod (subst (cons 11 p3)(cons 11 p2)(entget e2)))
    )
    (entdel e3)
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 16:39:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923564#M51273</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-27T16:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923841#M51274</link>
      <description>&lt;P&gt;Based on &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt; code...&lt;/P&gt;&lt;P&gt;I tested and it works as desired...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:ch3 ( / *error* @midp e2o cmde pea lwf ss d dd ee1 ee2 e11 e12 e2 e3 p1 p2 p3 p4 p11 p22 )

  (or (not (vl-catch-all-error-p (vl-catch-all-apply (function vlax-get-acad-object) nil))) (vl-load-com))

  (defun *error* ( m )
    (if (= 8 (logand 8 (getvar (quote undoctl))))
      (if command-s
        (command-s "_.undo" "_e")
        (vl-cmdf "_.undo" "_e")
      )
    )
    (if cmde
      (setvar (quote cmdecho) cmde)
    )
    (if pea
      (setvar (quote peditaccept) pea)
    )
    (if m
      (prompt m)
    )
    (princ)
  )

  (defun @midp ( elin / ent )
    (setq ent (entget elin))
    (mapcar (function *) (list 0.5 0.5) (mapcar (function +) (setq p1 (cdr (assoc 10 ent))) (setq p2 (cdr (assoc 11 ent)))))
  )

  (setq e2o vlax-ename-&amp;gt;vla-object)

  (setq cmde (getvar (quote cmdecho)))
  (setq pea (getvar (quote peditaccept)))
  (setvar (quote cmdecho) 0)
  (if (= 8 (logand 8 (getvar (quote undoctl))))
    (vl-cmdf "_.undo" "_e")
  )
  (vl-cmdf "_.undo" "_be")
  (and
    (setq e11 (entsel "\nPick first chamfer leg : "))
    (setq e12 (entsel "\nPick second chamfer leg : "))
    (not (initget 7))
    (setq dd (getdist "\nPick or specify chamfer distance : "))
    (if (= (cdr (assoc 0 (entget (car e11)))) "LWPOLYLINE")
      (progn
        (vl-cmdf "_.explode" (car e11))
        (setq ss (ssget "_p"))
        (setq e11 (nentselp (cadr e11)))
        (setq e12 (nentselp (cadr e12)))
        (ssdel (car e11) ss)
        (ssdel (car e12) ss)
        (vl-cmdf "_.chamfer" "_d" dd dd (car e11) (car e12))
        (setq lwf t)
      )
      (vl-cmdf "_.chamfer" "_d" dd dd (car e11) (car e12))
    )
    (setq e2 (car (entsel "\nSelect chamfer hypotenuse : ")))
    (not (initget 7))
    (setq d (getdist "\nEnter length of chamfer (perpendicular to leg) : "))
    (vl-cmdf "_.offset" d (car e11) (@midp e2) "")
    (setq p11 p1 p22 p2)
    (setq e3 (entlast))
    (setq p3 (mapcar (function +) (list 0.0 0.0 0.0) (vlax-invoke (e2o e2) (quote intersectwith) (e2o e3) 3)))
    (if (&amp;lt; (distance p3 p1) (distance p3 p2))
      (entmod (subst (cons 10 p3) (cons 10 p1) (entget e2)))
      (entmod (subst (cons 11 p3) (cons 11 p2) (entget e2)))
    )
    (if (and e3 (not (vlax-erased-p e3)))
      (progn
        (entdel e3)
        t
      )
    )
    (setq p4 (vlax-curve-getclosestpointto (car e11) p3 t))
    (setq ee1
      (entmakex
        (list (cons 0 "LINE")
          (cons 10 p3)
          (cons 11 p4)
        )
      )
    )
    (if (&amp;lt; (distance p4 (cdr (assoc 10 (entget (car e11))))) (distance p4 (cdr (assoc 11 (entget (car e11))))))
      (entupd (cdr (assoc -1 (entmod (subst (cons 10 p4) (assoc 10 (entget (car e11))) (entget (car e11)))))))
      (entupd (cdr (assoc -1 (entmod (subst (cons 11 p4) (assoc 11 (entget (car e11))) (entget (car e11)))))))
    )
    (vl-cmdf "_.offset" d (car e12) (@midp e2) "")
    (setq e3 (entlast))
    (setq p3 (mapcar (function +) (list 0.0 0.0 0.0) (vlax-invoke (e2o e2) (quote intersectwith) (e2o e3) 3)))
    (if (&amp;lt; (distance p3 p11) (distance p3 p22))
      (entmod (subst (cons 10 p3) (cons 10 p1) (entget e2)))
      (entmod (subst (cons 11 p3) (cons 11 p2) (entget e2)))
    )
    (if (and e3 (not (vlax-erased-p e3)))
      (progn
        (entdel e3)
        t
      )
    )
    (setq p4 (vlax-curve-getclosestpointto (car e12) p3 t))
    (setq ee2
      (entmakex
        (list (cons 0 "LINE")
          (cons 10 p3)
          (cons 11 p4)
        )
      )
    )
    (if (&amp;lt; (distance p4 (cdr (assoc 10 (entget (car e12))))) (distance p4 (cdr (assoc 11 (entget (car e12))))))
      (entupd (cdr (assoc -1 (entmod (subst (cons 10 p4) (assoc 10 (entget (car e12))) (entget (car e12)))))))
      (entupd (cdr (assoc -1 (entmod (subst (cons 11 p4) (assoc 11 (entget (car e12))) (entget (car e12)))))))
    )
    (if lwf
      (progn
        (setvar (quote peditaccept) 1)
        (ssadd (car e11) ss)
        (ssadd ee1 ss)
        (ssadd e2 ss)
        (ssadd ee2 ss)
        (ssadd (car e12) ss)
        (vl-cmdf "_.pedit" "_m" ss "" "_j")
        (while (&amp;lt; 0 (getvar (quote cmdactive)))
          (vl-cmdf "")
        )
      )
    )
  )
  (*error* nil)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;P&gt;M.R.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 01:40:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12923841#M51274</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-07-28T01:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer 2.0</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12924455#M51275</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I admire your improvement.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 13:11:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/chamfer-2-0/m-p/12924455#M51275</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-28T13:11:51Z</dc:date>
    </item>
  </channel>
</rss>

