<?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: Drawing Arcs in a circle with an Over lap in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480508#M19670</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14459640"&gt;@Emmanuel_Kilama&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... the total length of the arc (C-C of the arc) is &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;approximately 12m (&lt;FONT color="#FF0000"&gt;the smaller value should be taken&lt;/FONT&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;. ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Message 7 does it that way except that it calculates the number of Arcs needed around the Circle by rounding the straight division result &lt;EM&gt;up or down&lt;/EM&gt; to the nearest integer value.&amp;nbsp; That means the Arcs cansometimes come out to &lt;EM&gt;longer than&lt;/EM&gt; 12m.&amp;nbsp; Does &lt;FONT color="#FF0000"&gt;the red part&lt;/FONT&gt; mean it should always round the quantity &lt;EM&gt;upward&lt;/EM&gt;, so that the resulting Arcs are &lt;EM&gt;&lt;FONT color="#FF0000"&gt;never longer than&lt;/FONT&gt;&lt;/EM&gt; 12m?&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jan 2024 12:49:13 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2024-01-06T12:49:13Z</dc:date>
    <item>
      <title>Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478720#M19662</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;How can I quickly draw arcs of known radius along a circle with an overlap?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 13:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478720#M19662</guid>
      <dc:creator>Emmanuel_Kilama</dc:creator>
      <dc:date>2024-01-05T13:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478727#M19663</link>
      <description>&lt;P&gt;Illustrate, please.&amp;nbsp; Arcs overlapping the Circle?&amp;nbsp; Overlapping each other along the Circle?&amp;nbsp; Lying on the Circle, or is the "known radius" of the Arcs different from that of the Circle?&amp;nbsp; If so, are they all concentric?&amp;nbsp; How much overlap, and is that defined as an angle or a length?&amp;nbsp; Is there a difference between "&lt;EM&gt;in&lt;/EM&gt; a circle" in the Topic heading and "&lt;EM&gt;along&lt;/EM&gt; a circle" in the Message?&amp;nbsp; Etc., etc.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 13:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478727#M19663</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-05T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478772#M19664</link>
      <description>&lt;P&gt;The arcs are as shown in pic attached. Red lines are the arcs and the white is just the show the overlap&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 13:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478772#M19664</guid>
      <dc:creator>Emmanuel_Kilama</dc:creator>
      <dc:date>2024-01-05T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478816#M19665</link>
      <description>&lt;P&gt;That answers many, but not all, of the questions.&amp;nbsp; [New one:]&amp;nbsp; What determines how many Arcs, and [old one]: by how much they overlap?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478816#M19665</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-05T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478823#M19666</link>
      <description>&lt;P&gt;I need the arcs to be approx 9.7m with a lap of 2.3m&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478823#M19666</guid>
      <dc:creator>Emmanuel_Kilama</dc:creator>
      <dc:date>2024-01-05T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478938#M19667</link>
      <description>&lt;P&gt;That description sounds like what you want is this, with the &lt;EM&gt;Arcs themselves&lt;/EM&gt; at 9.7m [±] long, including their overlaps with adjacent Arcs:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1704465295072.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1310707i9143556480435B0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1704465295072.png" alt="Kent1Cooper_0-1704465295072.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but &lt;EM&gt;the proportions in your image&lt;/EM&gt; look more like what you want is for the 9.7m [±] to be the "effective" length, or center-to-center-of-overlaps length [the outboard 9.7 dimension here], or midpoint-to-midpoint of Arcs [the inboard one], with the length of the Arcs themselves being the &lt;EM&gt;sum&lt;/EM&gt; of that C-C length &lt;EM&gt;plus&lt;/EM&gt; the overlap:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1704465430988.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1310709i669D365F6902290A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_1-1704465430988.png" alt="Kent1Cooper_1-1704465430988.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you clarify?&amp;nbsp; Whichever way you want it, it should be possible for &lt;EM&gt;either:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;A.&amp;nbsp; the 2.3m &lt;EM&gt;overlap length&lt;/EM&gt;&amp;nbsp;to be exact, with the length of the Arcs adjusted by the circumference of the Circle divided into the number of segments that gives the closest result [I assume from Message 5, since you say "approx." about the 9.7 but not about the 2.3], &lt;EM&gt;OR&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;B.&amp;nbsp; the &lt;EM&gt;Arc length&lt;/EM&gt;&amp;nbsp;to be exactly 9.7m, with the overlap length affected by the Circle circumference, &lt;EM&gt;OR&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;C.&amp;nbsp; &lt;EM&gt;both&lt;/EM&gt; to be tweaked based on the Circle circumference, so that the &lt;EM&gt;ratio&lt;/EM&gt; between Arc length and overlap length is the same as 9.7 to 2.3.&lt;/P&gt;
&lt;P&gt;Do you have a preference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I assume your &lt;EM&gt;drawing unit&lt;/EM&gt; is a meter, not a centimeter or a millimeter, so that the 9.7 &amp;amp; 2.3 are &lt;EM&gt;in drawing units&lt;/EM&gt;&amp;nbsp;the same as what the Circle's data will use for its radius, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:56:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12478938#M19667</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-05T14:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12479615#M19668</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;EM&gt;the proportions in your image&lt;/EM&gt; look more like what you want is for the 9.7m [±] to be the "effective" length, or &lt;EM&gt;center-to-center-of-overlaps&lt;/EM&gt; length [the outboard 9.7 dimension here], or midpoint-to-midpoint of Arcs [the inboard one], with the length of the Arcs themselves being the &lt;EM&gt;sum&lt;/EM&gt; of that C-C length &lt;EM&gt;plus&lt;/EM&gt; the overlap:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1704465430988.png" style="width: 277px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1310709i669D365F6902290A/image-dimensions/277x127?v=v2" width="277" height="127" role="button" title="Kent1Cooper_1-1704465430988.png" alt="Kent1Cooper_1-1704465430988.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;.... it should be possible for &lt;EM&gt;either:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;A.&amp;nbsp; the 2.3m &lt;EM&gt;overlap length&lt;/EM&gt;&amp;nbsp;to be exact, with the length of the Arcs adjusted by the circumference of the Circle divided into the number of segments that gives the closest result [I assume from Message 5, since you say "approx." about the 9.7 but not about the 2.3],&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I assume your&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;drawing unit&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is a meter ....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Assuming those things from among the choices, this seems to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:OAOC ; = Overlapping Arcs Overlaying Circle
  ;; Arcs 9.7± units from midpoint to midpoint, extended to overlap 2.3 units
  (/ cir cdata ctr rad circum qu angoff)
  (if
    (and
      (setq cir (car (entsel "\nSelect Circle to overlay with overlapping Arcs: ")))
      (setq cdata (entget cir))
      (member '(0 . "CIRCLE") cdata)
    ); and
    (progn ; then
      (setq
        ctr (cdr (assoc 10 cdata))
        rad  (cdr (assoc 40 cdata))
        circum (getpropertyvalue cir "Circumference")
        qu (fix (+ (/ circum 9.7) 0.5)); quantity of Arcs
        angoff (/ 2.3 rad); angle offset [radians] for end extensions for 2.3-unit overlap
      ); setq
      (command
        "_.arc" "_c" "_non" ctr ;; [spelling out "_center" for option is taken as Osnap call]
          "_non" (polar ctr (- angoff) rad)
          "_non" (polar ctr (+ (/ (* pi 2) qu) angoff) rad)
        "_.array" "_last" "" "_polar" ctr qu "360" "_yes"
      ); command
    ); progn
  ); if
  (prin1)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The midpoint of an overlap will fall at the right quadrant point of the Circle [0° direction from the center].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All can be adjusted if my assumptions were not correct.&amp;nbsp; It could be built to ask for target lengths instead of having them built in.&amp;nbsp; And all the usual enhancements can be added, like Layer control, Undo begin/end wrapping, *error* handling, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:20:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12479615#M19668</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-05T19:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480163#M19669</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;BR /&gt;My preferred option is that the total length of the arc (C-C of the arc) is &lt;STRONG&gt;approximately 12m (the smaller value should be taken)&lt;/STRONG&gt;. Meanwhile, the Overlap length is exactly 2.3m meaning the effective length would be&amp;nbsp; approx 9.7m&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 05:07:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480163#M19669</guid>
      <dc:creator>Emmanuel_Kilama</dc:creator>
      <dc:date>2024-01-06T05:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480508#M19670</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14459640"&gt;@Emmanuel_Kilama&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... the total length of the arc (C-C of the arc) is &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;approximately 12m (&lt;FONT color="#FF0000"&gt;the smaller value should be taken&lt;/FONT&gt;)&lt;/STRONG&gt;&lt;SPAN&gt;. ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Message 7 does it that way except that it calculates the number of Arcs needed around the Circle by rounding the straight division result &lt;EM&gt;up or down&lt;/EM&gt; to the nearest integer value.&amp;nbsp; That means the Arcs cansometimes come out to &lt;EM&gt;longer than&lt;/EM&gt; 12m.&amp;nbsp; Does &lt;FONT color="#FF0000"&gt;the red part&lt;/FONT&gt; mean it should always round the quantity &lt;EM&gt;upward&lt;/EM&gt;, so that the resulting Arcs are &lt;EM&gt;&lt;FONT color="#FF0000"&gt;never longer than&lt;/FONT&gt;&lt;/EM&gt; 12m?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 12:49:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480508#M19670</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-06T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480590#M19671</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is I am trying to represent rebar layout in a circular footing. Each rebar length on site is 12m long.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 14:06:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480590#M19671</guid>
      <dc:creator>Emmanuel_Kilama</dc:creator>
      <dc:date>2024-01-06T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480778#M19672</link>
      <description>&lt;P&gt;They try changing this line:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;qu (fix (+ (/ circum 9.7) 0.5)); quantity of Arcs&lt;/LI-CODE&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;qu (+ (fix (/ circum 9.7)) (if (= (rem circum 9.7) 0) 0 1)); quantity of Arcs&lt;/LI-CODE&gt;
&lt;P&gt;so it will always round the quantity of Arcs up, so none will be longer than 12 units.&amp;nbsp; If the distance divides exactly, it will not add one; if not, it will add one to the quantity of Arcs.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 17:10:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480778#M19672</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-06T17:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480920#M19673</link>
      <description>&lt;P&gt;hey there,&lt;/P&gt;&lt;P&gt;check the code following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:arc_gap_2_3 (/ circle_sset start_angle start_distance index gap arc_length circle_object arc_gap_number arc_length)
  (if (setq circle_sset (ssget '((0 . "circle"))))
    (foreach circle (vl-remove-if 'listp (mapcar 'cadr (ssnamex circle_sset)))
	  (setq start_angle 0
	  	start_distance 0
	  	index 0
	  	gap 2.3
	  	arc_length 9.7
	  	circle_object (vlax-ename-&amp;gt;vla-object circle)
		arc_gap_number (1+ (fix (/ (vla-get-circumference circle_object) (+ arc_length gap))))
	  	arc_length (- (/ (vla-get-circumference circle_object) arc_gap_number) gap)
	  )
	  (repeat arc_gap_number
	    (vla-addarc (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
			(vla-get-center circle_object)
	      		(vla-get-radius circle_object)
	      		start_angle
	      		(angle (vlax-get circle_object 'center) (vlax-curve-getpointatdist circle_object (+ start_distance arc_length)))
	    )
	    (setq start_angle (angle (vlax-get circle_object 'center)
				     (vlax-curve-getpointatdist circle_object (setq start_distance (* (setq index (1+ index)) (+ arc_length gap))))
			      )
	    )
	  )
    )
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 20:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12480920#M19673</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-01-06T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12481235#M19674</link>
      <description>&lt;P&gt;Regards&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14459640"&gt;@Emmanuel_Kilama&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code. Take into account the following consideration. If the overlap length is 2.3, then because it is a structural reinforcement element, it should be applied at both ends, therefore the length of the resulting arc should be: 12-2.3-2.3=7.4.&lt;BR /&gt;If you require the length of the resulting arc to be 9.7, then the overlap length would be 1.15 at both ends.&lt;/P&gt;
&lt;P&gt;It should also be taken into account that under these arc length and overlap conditions, an exact number of 12m elements will not always be obtained. that cover the total length of the circumference. Therefore, the last arc element will have a value different from 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;;___
(defun c:nR (/ s sv r c a sp lc la lt al at n cl)
  (princ "\nSelect Circle: ")
  (setq	s  (ssget "+.:E:S" '((0 . "circle")))
	la (getreal "\nEnter total length Arc: ")
	lt (getreal "\nEnter overlap length: ")
  )
  (setq	sv (vlax-ename-&amp;gt;vla-object (ssname s 0))
	r  (vlax-get-property sv 'radius)
	c  (vlax-get sv 'center)
	lc (* 2 pi r)			;l_tot
	a  0.
	al (/ la r)			; ang_tot
	at (/ lt r)			; ang_trasl
	n  (fix (/ lc (- la lt)))
	cl 1
  )
  (repeat n
    (entmakex (list '(0 . "arc")
		    (cons 10 c)
		    (cons 40 r)
		    (cons 50 a)
		    (cons 51 (setq a (+ a al)))
		    (cons 62 cl)
	      )
    )
    (setq a (- a at))
    (if	(= cl 1)
      (setq cl (1+ cl))
      (setq cl 1)
    )
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2024 04:06:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12481235#M19674</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2024-01-07T04:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12481559#M19675</link>
      <description>&lt;P&gt;another one with overlaps&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:arc_lap_2_3 (/ circle_sset start_angle start_distance index gap arc_length circle_object arc_gap_number)
  (if (setq circle_sset (ssget '((0 . "circle"))))
    (foreach circle (vl-remove-if 'listp (mapcar 'cadr (ssnamex circle_sset)))
	  (setq start_angle 0
	  	start_distance 0
	  	index 0
	  	lap 2.3
	  	arc_length 12.0
	  	circle_object (vlax-ename-&amp;gt;vla-object circle)
		arc_lap_number (1+ (fix (/ (vla-get-circumference circle_object) (- arc_length lap))))
	  	arc_length (+ (/ (vla-get-circumference circle_object) arc_lap_number) lap)
	  )
	  (repeat arc_lap_number
	    (vla-addarc (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
			(vla-get-center circle_object)
	      		(vla-get-radius circle_object)
	      		start_angle
	      		(angle (vlax-get circle_object 'center) (vlax-curve-getpointatdist circle_object (+ start_distance arc_length)))
	    )
	    (setq start_angle (angle (vlax-get circle_object 'center)
				     (vlax-curve-getpointatdist circle_object (setq start_distance (* (setq index (1+ index)) (- arc_length lap))))
			      )
	    )
	  )
    )
  )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Jan 2024 11:03:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12481559#M19675</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-01-07T11:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12484098#M19676</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4920461"&gt;@calderg1000&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... If the overlap length is 2.3, then because it is a structural reinforcement element, it should be applied at both ends, therefore the length of the resulting arc should be: 12-2.3-2.3=7.4.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you require the length of the resulting arc to be 9.7, then the overlap length would be 1.15 at both ends.&lt;/P&gt;
&lt;P&gt;It should also be taken into account that ... an exact number of 12m elements will not always be obtained. that cover the total length of the circumference. Therefore, the last arc element will have a value different from 12.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14459640"&gt;@Emmanuel_Kilama&lt;/a&gt;&amp;nbsp;correct me if I'm wrong, but the overlap has half of its length coming from one bar, and the other half from the adjacent bar, so the effective length between &lt;EM&gt;midpoints of overlaps&lt;/EM&gt; is still a maximum of 9.7 for a 12-unit bar [see the second image in Message 6].&amp;nbsp; Yes, the single-bar stretch &lt;EM&gt;between&lt;/EM&gt;&amp;nbsp;the near ends of overlaps would be a maximum 7.4 units, if that's what you mean.&lt;/P&gt;
&lt;P&gt;And the arc elements can all be the same [the original image at Message 3 looks like that, and my suggested code assume that] if either:&lt;/P&gt;
&lt;P&gt;A.&amp;nbsp; The lengths of the bars is a &lt;EM&gt;maximum&lt;/EM&gt; of 12 units, but they can be shorter to fit around the circle equally with the right overlap [requiring cutting them], or;&lt;/P&gt;
&lt;P&gt;B.&amp;nbsp; The length of the overlaps is a &lt;EM&gt;minimum&lt;/EM&gt; of 2.3 units, but can be longer [allowing the bars to be left at their full 12-unit length].&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14459640"&gt;@Emmanuel_Kilama&lt;/a&gt;&amp;nbsp;, is there a preference, whether for a different-length one somewhere, or cutting bars shorter, or leaving them un-cut and having greater overlap distance?&amp;nbsp; I would lean toward the last option -- I don't see any structural reason why the overlaps couldn't be longer, and it seems a waste of time to cut them a little shorter for an exact overlap length [unless you're cutting off enough length to be able to use elsewhere, which doesn't seem likely].&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 18:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12484098#M19676</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-08T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Arcs in a circle with an Over lap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12484435#M19677</link>
      <description>&lt;P&gt;Regards,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to my opinion, the length of 12 m. It obeys a constructive consideration that depends on the radius of the circle on which the reinforcing rods will be placed and that has to do with the arc shape of the reinforcing steel. The overlap length is due to a structural consideration that has to do with the diameter of the reinforcing rod, to absorb the tensile forces that will act on the concrete structure. It is true that the measurements can be more or less a few centimeters. But for constructive uniformity it may be better to work with integer values, or with rounding to the nearest centimeter. Then there will always be an uncovered length that must be measured at the end and a custom Rod made to close the perimeter including the overlap. It is my interpretation without knowing exact details of the proposed reinforced concrete structure.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 21:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-arcs-in-a-circle-with-an-over-lap/m-p/12484435#M19677</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2024-01-08T21:34:44Z</dc:date>
    </item>
  </channel>
</rss>

