<?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: REQUEST FOR A LISP ARC TO LINE in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464253#M20131</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smallish_0-1704023073106.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1309136iEA8B36F80CAF3927/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1704023073106.png" alt="smallish_0-1704023073106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated reply.&lt;/P&gt;</description>
    <pubDate>Sun, 31 Dec 2023 11:45:05 GMT</pubDate>
    <dc:creator>smallƑish</dc:creator>
    <dc:date>2023-12-31T11:45:05Z</dc:date>
    <item>
      <title>REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12460548#M20118</link>
      <description>&lt;P&gt;Replacing multiple arcs to pline, If both end of the arcs are on an orthogonal straight line, replace the arc with a straight line, If not on an ortho stright line find out the intersection point with reference to the arc mid-point direction, and make 3 point pline.&lt;/P&gt;&lt;P&gt;sample drawing. attached.&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="smallish_0-1703440367060.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1307690i95127851AE868033/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1703440367060.png" alt="smallish_0-1703440367060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 19:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12460548#M20118</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-24T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461349#M20119</link>
      <description>&lt;P&gt;That would not be difficult to code, but questions arise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your "after" runs L-shaped Polylines between Block insertion points that are close to Arc endpoints, but the Arc endpoints do not always lie at Block insertion points, nor coincide with the other Arc that ends in the vicinity:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1703505377041.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1307791i7FB7176E7A8C1259/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1703505377041.png" alt="Kent1Cooper_0-1703505377041.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So something that converts an Arc to an L-shaped Polyline will not have the same result as your "after."&amp;nbsp; Which do you want -- Arcs or Blocks?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is at least one Block that lies kind of &lt;EM&gt;near&lt;/EM&gt; the path of one of the Arcs, but does not have any Arc endpoint(s) near it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1703505545164.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1307792iB86854B02FE94658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_1-1703505545164.png" alt="Kent1Cooper_1-1703505545164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And yet the "after" has two L's meeting at that Block.&amp;nbsp; Something that converts Arcs will not see or use that Block at all.&amp;nbsp; Should it go from selection of Blocks rather than Arcs?&lt;/P&gt;
&lt;P&gt;And there are &lt;EM&gt;two&lt;/EM&gt; L's possible connecting any two points that have differences in both X and Y coordinates [whether Arc endpoints or Block insertion points]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_2-1703505856025.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1307794i4B02D4D20ABD5077/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_2-1703505856025.png" alt="Kent1Cooper_2-1703505856025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you define any criteria by which a routine could decide whether to do the red one or the blue one?&amp;nbsp; See also &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/continuous-orthogonal-polylines/m-p/8595841" target="_blank" rel="noopener"&gt;&amp;gt;this&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And there's interesting related discussion, including code approaches to calculating the corners of the possible L's related to two known locations,&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/td-p/12390578" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 12:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461349#M20119</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-12-25T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461403#M20120</link>
      <description>&lt;P&gt;First of all, thank you so much for a very detailed review of it as always your style.&amp;nbsp; Here my task is modifying existing drawings who prepared by someone else for better presentation and neat printing. As you instructed there are a lot of errors in it.&amp;nbsp; I have to correct it manually as we don't have any options. A screenshot is attached for better understanding. Regarding your 3rd screen shot the blue and red options, here doesn't matter both options are equal for the scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="smallish_0-1703510671604.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1307801i8176B1F62FBCF977/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1703510671604.png" alt="smallish_0-1703510671604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 13:24:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461403#M20120</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-25T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461867#M20121</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10577275"&gt;@smallƑish&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try this, not fully tested&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:ACL( / *error* ss adoc x1 y1 x2 y2)
	(defun *error* ( msg )
		(if (not (member msg '("Function cancelled" "quit / exit abort")))
			(princ)
		)
		(if (and adoc) (vla-endundomark adoc))
		(princ)
	)
	(princ "\nSelect arcs to convert to line &amp;gt;")
	(setq ss (ssget '((0 . "ARC"))) i -1)
	(setq adoc (vla-get-activedocument (vlax-get-acad-object))) 
	(vla-endundomark adoc)
	(vla-startundomark adoc)
	(while (&amp;lt; (setq i (1+ i)) (sslength ss))
		(setq eo (vlax-ename-&amp;gt;vla-object (ssname ss i)))
		(mapcar 'set '(x1 y1) (vlax-get eo 'startpoint))
		(mapcar 'set '(x2 y2) (vlax-get eo 'endpoint))
		(cond
			((or (&amp;lt; (abs(- x1 x2)) 1e-8)(&amp;lt; (abs(- y1 y2)) 1e-8))
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y1) 1 0))
						(cons 11 (trans(list x2 y2) 1 0))
					)
				)
			)
			
			(T		
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y1) 1 0))
						(cons 11 (trans(list x1 y2) 1 0))
					)
				)
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y2) 1 0))
						(cons 11 (trans(list x2 y2) 1 0))
					)
				)
			)
		)
	)
	(vla-endundomark adoc)
	(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Dec 2023 23:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12461867#M20121</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2023-12-25T23:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12462872#M20122</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp; @It does the task. But the arcs are not deleting after making PLINE.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 18:14:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12462872#M20122</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-26T18:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12462929#M20123</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10577275"&gt;@smallƑish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp; @It does the task. But the arcs are not deleting after making PLINE.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:ACL( / *error* ss adoc x1 y1 x2 y2)
	(defun *error* ( msg )
		(if (not (member msg '("Function cancelled" "quit / exit abort")))
			(princ)
		)
		(if (and adoc) (vla-endundomark adoc))
		(princ)
	)
	(princ "\nSelect arcs to convert to line &amp;gt;")
	(setq ss (ssget '((0 . "ARC"))) i -1)
	(setq adoc (vla-get-activedocument (vlax-get-acad-object))) 
	(vla-endundomark adoc)
	(vla-startundomark adoc)
	(while (&amp;lt; (setq i (1+ i)) (sslength ss))
		(setq eo (vlax-ename-&amp;gt;vla-object (ssname ss i)))
		(mapcar 'set '(x1 y1) (vlax-get eo 'startpoint))
		(mapcar 'set '(x2 y2) (vlax-get eo 'endpoint))
		(cond
			((or (&amp;lt; (abs(- x1 x2)) 1e-8)(&amp;lt; (abs(- y1 y2)) 1e-8))
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y1) 1 0))
						(cons 11 (trans(list x2 y2) 1 0))
					)
				)
			)
			
			(T		
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y1) 1 0))
						(cons 11 (trans(list x1 y2) 1 0))
					)
				)
				(entmake
					(list
						(cons 0 "LINE")
						(cons 100 "AcDbEntity")
						(cons 100 "AcDbLine")
						(cons 10 (trans(list x1 y2) 1 0))
						(cons 11 (trans(list x2 y2) 1 0))
					)
				)
			)
		)
		(vla-delete eo)
	)
	
	(vla-endundomark adoc)
	(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Dec 2023 18:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12462929#M20123</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2023-12-26T18:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12463860#M20124</link>
      <description>&lt;P&gt;for starter. needs each pline to be tuned in direction.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;*******************************************************************************************************************************************

(defun get_approximation_list (arc / approximation_steps approximation_distance approximation_point_list point_index)
	(setq approximation_steps (fix (/ (vla-get-arclength arc) (* 0.25 (vla-get-radius arc))))
		  approximation_distance (/ (vla-get-arclength arc) approximation_steps)
		  approximation_point_list (list (vlax-get arc 'startpoint))
		  point_index 0
	)
	(repeat approximation_steps
	  	(setq approximation_point_list (append approximation_point_list 
											  (list (vlax-curve-getpointatdist 
											  			arc 
											  			(* approximation_distance (setq point_index (1+ point_index)))
													)
											  )
									   )
		)
	)
	approximation_point_list
)

;*******************************************************************************************************************************************

(defun c:sf_arc_pline (/ arc_sset block_sset vertex_list)
	(if (setq arc_sset (ssget '((0 . "arc"))))
		(foreach arc (mapcar 'vlax-ename-&amp;gt;vla-object (vl-remove-if 'listp (mapcar 'cadr (ssnamex arc_sset))))
			(setq block_sset (ssget "_f" (get_approximation_list arc) (list '(0 . "insert") (cons 2 "-ep-down light"))))
			(if block_sset
				(progn
					(setq vertex_list (mapcar '(lambda (vertex) (mapcar '+ '(0 0) vertex)) 
											   (mapcar '(lambda (insert) (cdr (assoc 10 (entget insert))))
														(vl-remove-if 'listp (mapcar 'cadr (ssnamex block_sset)))
											   )
									  )
					)
					(foreach segment (setq segment_list (mapcar 'list vertex_list (cdr vertex_list)))
						(command "_pline" "_non" (car segment) 
										  "_non" (list (car (car segment)) (cadr (cadr segment))) 
										  "_non" (cadr segment) ""
						)
					)
				)
			)
		)
	)
)

;*******************************************************************************************************************************************&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 11:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12463860#M20124</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-12-27T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12463998#M20125</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;Thank you, That works for me. You saved me a ton of time. Respect and appreciate your dedication to help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 13:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12463998#M20125</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464012#M20126</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;&amp;nbsp; for the thunderous code!&lt;/P&gt;&lt;P&gt;The automatic alignment of each block's basepoint in your code was a game-changer. It significantly simplified the process of correcting the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eagerly await the next version as you mentioned it is a starter.&lt;/P&gt;&lt;P&gt;If possible please consider, all selected blocks basepoint&amp;nbsp; instead of only the Block name &lt;STRONG&gt;&lt;EM&gt;"-ep-down light"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 14:14:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464012#M20126</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464052#M20127</link>
      <description>&lt;P&gt;Here's my take on it [lightly tested]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:DOIT (/ peac ss n arc startpt endpt ctr cornerA cornerB)
  (setq peac (getvar 'peditaccept))
  (setvar 'peditaccept 1)
  (if (setq ss (ssget "_:L" '((0 . "ARC"))))
    (repeat (setq n (sslength ss)); then
      (setq
        arc (ssname ss (setq n (1- n)))
        startpt (getpropertyvalue arc "startpoint")
        endpt (getpropertyvalue arc "endpoint")
        ctr (getpropertyvalue arc "center")
        cornerA (list (car startpt) (cadr endpt))
        cornerB (list (car endpt) (cadr startpt))
      ); setq
      (command "_.pedit" arc "_edit" "_straighten" "_next" "_go")
      (if (or (equal (car startpt) (car endpt) 1e-4) (equal (cadr startpt) (cadr endpt) 1e-4))
        (command "_eXit" ""); then -- single line segment only
        (command ; else -- L
          "_insert" "_non"
          (if
            (and
              (&amp;gt; (distance ctr cornerA) (distance ctr cornerB))
              (&amp;lt; (getpropertyvalue arc "totalangle") pi)
            ); and
            cornerA cornerB
          ); if
          "_eXit" ""
        ); command
      ); if
    ); repeat
    (prompt "\nNo Arc(s) on unlocked Layer(s) selected."); else
  ); if
  (setvar 'peditaccept peac)
  (prin1)
); defun&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does it by &lt;EM&gt;&lt;STRONG&gt;PEDITing the Arcs&lt;/STRONG&gt; into Polylines&lt;/EM&gt;, and changing them to line segments and adding a vertex if appropriate, so that &lt;EM&gt;they retain all their properties&lt;/EM&gt; [Layer, color, linetype, linetype scale, lineweight] without the routine needing to account for any of that.&lt;/P&gt;
&lt;P&gt;If the Arc's endpoints align in either the X or Y direction, it does only the single line segment, otherwise making the L.&amp;nbsp; The direction of the "bulge" of the L is in the direction of the Arc's bulge, so that, for example, the white original at left here will result in the green L's, not the red ones [overlapping segments] or the yellow ones [crossing Polylines].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1703686919225.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308196i6F4610D5AE1AA394/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1703686919225.png" alt="Kent1Cooper_0-1703686919225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It could use the addition of *error* handling and Undo begin/end wrapping, but first see whether it does what you want otherwise.&amp;nbsp; It could also easily have the forcing of the endpoints to a nearby Block insertion point [if there is one -- might there ever not be?] included within the PEDIT operation.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 14:34:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464052#M20127</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-12-27T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464105#M20128</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your approach to problem-solving was truly impressive, filled with valuable insights and fresh information. It effectively serves the purpose of updating my drawing needs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:07:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464105#M20128</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464141#M20129</link>
      <description>&lt;P&gt;I wish to request an addition to the process, to make it more neat to read the drawings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;possible to add a chamfer tip on the edges, concerning user-given length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="smallish_0-1703690037613.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308211iC74523079A70FBD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1703690037613.png" alt="smallish_0-1703690037613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yellow is the Existing arc, Cian is Pline what your code does, and Red Pline is my additional code request&amp;nbsp;&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="smallish_1-1703690155103.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308212i9335D14306E76D0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_1-1703690155103.png" alt="smallish_1-1703690155103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If the user can enter the value, it could be much easier for different drawing scales.&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smallish_2-1703690365170.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308213i5DF5C708238AF234/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_2-1703690365170.png" alt="smallish_2-1703690365170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so final the result could be like this&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464141#M20129</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464211#M20130</link>
      <description>&lt;P&gt;So not what's described in Message 1 any more....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's certainly possible [though considerably more complex].&amp;nbsp; But there can be strange results, for example, when the difference in X or Y is &lt;EM&gt;small relative to the landing length&lt;/EM&gt;, it would get results like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1703692037945.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308216i2CB0278258DB20BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1703692037945.png" alt="Kent1Cooper_0-1703692037945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you define any criteria for handling that differently, and in what way?&amp;nbsp; Maybe something like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1703692255984.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308217i7476E514414B4114/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_1-1703692255984.png" alt="Kent1Cooper_1-1703692255984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:51:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464211#M20130</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-12-27T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464253#M20131</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smallish_0-1704023073106.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1309136iEA8B36F80CAF3927/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1704023073106.png" alt="smallish_0-1704023073106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated reply.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 11:45:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464253#M20131</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-31T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464263#M20132</link>
      <description>&lt;P&gt;In most cases, the champer length would be less than that. if any rare or mistake cases;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the polar distance is less than the landing champer length. either consider it as a straight line rule, or reduce the chamfer length from the user entered&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 16:18:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464263#M20132</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T16:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464387#M20133</link>
      <description>&lt;P&gt;The imagery in Message 14 suggests you should consider whether, even in more straightforward situations, what you really want should be the yellow here, instead of the red as in Message 12:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1703698143754.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308254i5B7D937FB22AF4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1703698143754.png" alt="Kent1Cooper_0-1703698143754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The red result would be easier, because the intermediate vertices are all offset &lt;EM&gt;in the same direction&lt;/EM&gt; from the vertices of the plain L shape, whereas in the yellow result, each of them is offset in a &lt;EM&gt;different&lt;/EM&gt; direction.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 17:31:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464387#M20133</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-12-27T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464405#M20134</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10577275"&gt;@smallƑish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In most cases, the champer length would be less than that. if any rare or mistake cases;&amp;nbsp;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In your original, this situation is &lt;EM&gt;more&lt;/EM&gt; common, not rare at all -- the ones I turned magenta and red are all in that kind of relationship between their ends:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1703698609440.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1308257i6DF4744489A0DDBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1703698609440.png" alt="Kent1Cooper_0-1703698609440.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The red one is different in that I think it's really supposed to be &lt;EM&gt;two&lt;/EM&gt; Arcs [because of your green intended result], but even if it were two that would be yellow, the magenta ones are still in the majority.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 17:40:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464405#M20134</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-12-27T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464414#M20135</link>
      <description>&lt;P&gt;Yes, I agree with you.&amp;nbsp; Red is the perfect option.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 17:44:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464414#M20135</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464430#M20136</link>
      <description>&lt;P&gt;Yes, I realize the fact. Hence do we have any options to consider, that wherever the arc ends are less than the landing length distance from a polar line, can we apply the straight line rule?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 17:51:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12464430#M20136</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-27T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: REQUEST FOR A LISP ARC TO LINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12465968#M20137</link>
      <description>IS that ok to share your testing code?</description>
      <pubDate>Thu, 28 Dec 2023 17:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/request-for-a-lisp-arc-to-line/m-p/12465968#M20137</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-12-28T17:48:22Z</dc:date>
    </item>
  </channel>
</rss>

