<?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: polyline arc from clockwise direction in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675852#M196430</link>
    <description>&lt;P&gt;You got it, that is my goal. Getting back to my original question regarding simulating the Ctrl-Key function, this does need seem&amp;nbsp;feasible. I would be interested in Option 2 if this calculation can be done in excel without VBA. Thank you for your valuable input.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 16:24:50 GMT</pubDate>
    <dc:creator>john.taiariol</dc:creator>
    <dc:date>2018-01-09T16:24:50Z</dc:date>
    <item>
      <title>polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673296#M196421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I calculate a list of coordinates in Excel and cut and paste to autocad in Polyline to create a cutterpath. This usually works great except when I have an arc in my cutterpath. In the NC code if the arc is defined with C3 then it is generated in counter-clockwise direction which is drawn properly in autocad as Polyline will&amp;nbsp;default&amp;nbsp; to CCW (unless the Ctrl key is held down). However if my NC program calls out a C2 code then the cutter generates a clockwise arc which I can't define in my coordinate list. Is there an autocad command that will enable a clockwise arc in Polyline? (or simulate holding Ctrl key)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 21:06:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673296#M196421</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-08T21:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673346#M196422</link>
      <description>&lt;P&gt;After entering an &lt;STRONG&gt;A&lt;/STRONG&gt; for arc, enter a &lt;STRONG&gt;D&lt;/STRONG&gt; for direction. AutoCAD then expects a point that defines a vector in the direction of the tangent to the arc at the last point of the polyline. This should be followed by a point on the arc.&amp;nbsp; Try it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 21:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673346#M196422</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-01-08T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673631#M196423</link>
      <description>&lt;P&gt;if I hit D for direction then it doesn't allow me to enter the radius&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 23:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673631#M196423</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-08T23:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673755#M196424</link>
      <description>&lt;P&gt;Given two points and the tangent of an arc at one of the two points, the radius of the point is defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, to create the polyline with a straight line from 1 to 2 and an arc from 2 to 4&amp;nbsp; with a center at 5 do the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pline&lt;/P&gt;
&lt;P&gt;tangent at 2 defined by the vector that goes from 2 to 3 do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Command: &lt;STRONG&gt;PLINE&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify start point:&amp;nbsp; &lt;STRONG&gt;point-1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Current line-width is 0.0000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify next point or [Arc/Halfwidth/Length/Undo/Width]:&lt;STRONG&gt;point-2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: &lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify endpoint of arc (hold Ctrl to switch direction) or&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Angle/CEnter/CLose/Direction/Halfwidth/Line/Radius/Second pt/Undo/Width]: &lt;STRONG&gt;d&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify the tangent direction for the start point of arc:&lt;STRONG&gt;point-3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify endpoint of the arc (hold Ctrl to switch direction):&lt;STRONG&gt;point-4&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Specify endpoint of arc (hold Ctrl to switch direction) or&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Angle/CEnter/CLose/Direction/Halfwidth/Line/Radius/Second pt/Undo/Width]:&lt;STRONG&gt;[Enter]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The center of the arc is at the intersection of a line thru point-2 and perpendicular to line 2-3 (red line) and the perpendicular bisector of line 2-4 (yellow line).&amp;nbsp; The radius of the arc is the distance from 2 to 5.&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="la1.JPG" style="width: 318px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/447116iBA159D22AEA3B589/image-size/large?v=v2&amp;amp;px=999" role="button" title="la1.JPG" alt="la1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 01:31:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673755#M196424</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-01-09T01:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673916#M196425</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4607122"&gt;@john.taiariol&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;.... Is there an autocad command that will enable a clockwise arc in Polyline? &lt;SPAN&gt; (or simulate holding Ctrl key)&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I may be misunderstanding somewhat, because I know nothing about NC code, what it's for, nor what the C3/C2 distinction is all about, but to answer that question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you are automating drawing a Polyline, so you're in a (command "_.pline" ...) situation &lt;EM&gt;and&lt;/EM&gt;&amp;nbsp; it's already in &lt;STRONG&gt;A&lt;/STRONG&gt;rc-segment mode, first feed in the &lt;STRONG&gt;D&lt;/STRONG&gt;irection option, then this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;(* (/&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;(+ (getvar 'lastangle) pi)&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;pi) 180)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then give it the next point.&amp;nbsp; That will&amp;nbsp;start the arc segment off at the &lt;EM&gt;&lt;FONT color="#0000ff"&gt;conversion to degrees of&lt;/FONT&gt;&lt;/EM&gt;&amp;nbsp; the &lt;FONT color="#ff0000"&gt;&lt;EM&gt;reverse of the current tangent-continuation direction&lt;/EM&gt;&lt;/FONT&gt;, which is what you get from holding the CTRL key when drawing&amp;nbsp;one manually.&amp;nbsp; [That also assumes that degrees are your current angular units setting.&amp;nbsp; If not, convert in whatever way is appropriate to what the Pline command's Direction option wants to be told, or if&amp;nbsp;that's radians, &lt;EM&gt;omit&lt;/EM&gt;&amp;nbsp; the conversion.]&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 03:44:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7673916#M196425</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-09T03:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7674890#M196426</link>
      <description>&lt;P&gt;I have a known radius so I prefer to create the polyline with start point, arc, radius [enter radius], at this point there is an option to change direction by holder the Ctrl Key. Can this be automated?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 12:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7674890#M196426</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-09T12:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7674932#M196427</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4607122"&gt;@john.taiariol&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a known radius so I prefer to create the polyline with start point, arc, radius [enter radius], at this point there is an option to change direction by holder the Ctrl Key. Can this be automated?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That one I don't know of a way to do.&amp;nbsp; But I find a circumstance in doing it manually that you might not want.&amp;nbsp; If the location of the cursor &lt;EM&gt;without&lt;/EM&gt;&amp;nbsp; CTRL held down will result in, let's say, a 1/4-circle arc segment going counterclockwise, &lt;EM&gt;with&lt;/EM&gt;&amp;nbsp; CTRL held down it &lt;EM&gt;doesn't&lt;/EM&gt;&amp;nbsp; give the mirror image of that [a quarter-circle going clockwise, which &lt;EM&gt;would&lt;/EM&gt;&amp;nbsp; be the result of changing the sign on the bulge factor in entity data], but rather the rest of the virtual circle of which that no-CTRL arc segment would be a part -- a &lt;EM&gt;3/4&lt;/EM&gt;-circle arc segment going clockwise.&amp;nbsp; It doesn't seem possible to get &lt;EM&gt;any&lt;/EM&gt;&amp;nbsp; less-than-180-degree-swing arc segment that way [at least manually].&amp;nbsp; Could that possibly be a workable condition for your purposes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the format of the "list of coordinates," and how are arc segments between them differentiated from line segments, and how is the radius stored in relation to the coordinates of the ends?&amp;nbsp; Depending on the format, it might be possible to do this by something like a calculation of where the &lt;EM&gt;midpoint&lt;/EM&gt;&amp;nbsp; of the arc segment would be, and use of the &lt;STRONG&gt;S&lt;/STRONG&gt;econd-point option within &lt;STRONG&gt;A&lt;/STRONG&gt;rc mode in a Polyline command.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 12:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7674932#M196427</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-09T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675067#M196428</link>
      <description>&lt;P&gt;The coordinates are in "X,Y" format and an arc is initiated with A,R [specify radius] and end point as shown below (single excel column):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;249.891,225.708&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;35&lt;BR /&gt;266.455,196.305&lt;BR /&gt;L&lt;BR /&gt;266.494,192.339&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;50&lt;BR /&gt;250.398,155.089&lt;BR /&gt;L&lt;BR /&gt;225.368,132&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;50&lt;BR /&gt;211.975,79.022&lt;BR /&gt;L&lt;BR /&gt;230.630,24.649&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;2&lt;BR /&gt;228.738,22&lt;BR /&gt;L&lt;BR /&gt;194.674,0&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 13:24:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675067#M196428</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-09T13:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675618#M196429</link>
      <description>&lt;P&gt;As I understand your goal you want to be able to take NC G codes you have in an Excel worksheet and generate AutoCAD commands to create a polyline that represents the toolpath.&amp;nbsp; The main problem you are facing is that the format of the G codes you are using to create an arc use two points (the current cutter location and then end of the arc about to be created), a radius AND if the arc goes in a CW or CCW direction from the current point.&amp;nbsp; &amp;nbsp;In general, given two points (P1, &amp;nbsp;P2) &amp;nbsp;and a radius (R) there are two possible circles that can be defined.&amp;nbsp; The center of these two circles lies at the intersection of a circle of radius R about either of the two points and the perpendicular bisector of the line from P1 to P2.&amp;nbsp; AutoCAD lets you access one or the other of these two arcs through the use of the Ctrl key while the NC post processor uses the codes C02 or C03 to specify direction.&amp;nbsp; Yes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution is to either&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Determine how to enter a Ctrl character in a command line for the arc or&lt;/LI&gt;
&lt;LI&gt;Determine how to calculate the tangent vector given two points, a radius and a direction in an Excel statement.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Would you be interested in an Excel/VBA function to address option #2?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 15:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675618#M196429</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-01-09T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675852#M196430</link>
      <description>&lt;P&gt;You got it, that is my goal. Getting back to my original question regarding simulating the Ctrl-Key function, this does need seem&amp;nbsp;feasible. I would be interested in Option 2 if this calculation can be done in excel without VBA. Thank you for your valuable input.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 16:24:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7675852#M196430</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-09T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7676408#M196431</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4607122"&gt;@john.taiariol&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The coordinates are in "X,Y" format and an arc is initiated with A,R [specify radius] and end point as shown below (single excel column):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;249.891,225.708&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;35&lt;BR /&gt;266.455,196.305&lt;BR /&gt;L&lt;BR /&gt;266.494,192.339&lt;BR /&gt;A&lt;BR /&gt;R&lt;BR /&gt;50&lt;BR /&gt;250.398,155.089&lt;BR /&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are the arc segments after the first one&amp;nbsp;by any chance always &lt;EM&gt;tangent continuations&lt;/EM&gt; from the line segments preceding them?&amp;nbsp; If so, apart from the first one, you could just &lt;EM&gt;leave out the R's and the radius values that follow them&lt;/EM&gt;, and just&amp;nbsp;feed the rest into a PLINE command!&amp;nbsp; But getting the first one would require some calculation to come up with a midpoint for the Second-point option, or a starting direction for the Direction option&amp;nbsp;[can't think about that right now -- maybe later].&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:05:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7676408#M196431</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-09T19:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: polyline arc from clockwise direction</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7676430#M196432</link>
      <description>&lt;P&gt;this is not always the case so to be safe I think I will need the second point. I think I can do the math on that. I appreciate everyone's time and effort to help me solve my problem. thank you all.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:13:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/polyline-arc-from-clockwise-direction/m-p/7676430#M196432</guid>
      <dc:creator>john.taiariol</dc:creator>
      <dc:date>2018-01-09T19:13:06Z</dc:date>
    </item>
  </channel>
</rss>

