<?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: How to array while rotating? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599109#M259764</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/21866"&gt;@jay&lt;/a&gt;.llamoso wrote:&lt;BR /&gt;
&lt;P&gt;Hello Nelson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess you are thinking of a POLAR array. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Once the shape of a tooth has been defined, you can use a Polar Array to spread&amp;nbsp;the teeth around the gear, but you &lt;EM&gt;can't&lt;/EM&gt; use it to make the tooth-defining steps in the image in Post 4. &amp;nbsp;A Polar Array makes rotational copies around a &lt;EM&gt;common&lt;/EM&gt; rotation base point, but what's needed is copies &lt;EM&gt;shifted over&lt;/EM&gt; and then each rotated around a base point likewise shifted over, with each successive one shifted farther than the previous one. &amp;nbsp;That's what the guide they linked to is describing, and what the code in Post 5 does. &amp;nbsp;[And if I do say so myself, I think it's pretty cool to watch it do its thing!]&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 20:18:03 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2016-10-03T20:18:03Z</dc:date>
    <item>
      <title>How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6579063#M259756</link>
      <description>&lt;P&gt;I want to draw an accurate gear and I found a guide, but one step I don't know how &amp;nbsp;to do. Can anybody help me, please? I have to do an array of an polyline and at the same time rotate it.Hear is the guide, go to paragraph 6.2.5 the second image (the middle of the page):&amp;nbsp;&lt;A href="http://lcamtuf.coredump.cx/gcnc/ch6/#6.2&amp;nbsp;" target="_blank"&gt;http://lcamtuf.coredump.cx/gcnc/ch6/#6.2&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, Nelson&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 20:05:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6579063#M259756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6579147#M259757</link>
      <description>&lt;P&gt;youtube has several good videos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;search youtube for&amp;nbsp;&amp;nbsp;&amp;nbsp; how to draw a spur gear in autocad&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=WuKkQ1pPRVY" target="_blank"&gt;https://www.youtube.com/watch?v=WuKkQ1pPRVY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 20:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6579147#M259757</guid>
      <dc:creator>parkr4st</dc:creator>
      <dc:date>2016-09-22T20:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6580237#M259758</link>
      <description>&lt;P&gt;i made this screencast for your case... i hope it's help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="76fe444b-38ab-44ae-93f2-bb7a0f6ff028" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/76fe444b-38ab-44ae-93f2-bb7a0f6ff028" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Sep 2016 11:58:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6580237#M259758</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2016-09-23T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6581323#M259759</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for tour replies. But I want to draw an accurate gear and the guide I linked to seemed to me quite good. The step in the picture is when I get stuck.&lt;/SPAN&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="Knipsel.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/275772i561F03BB90312C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel.PNG" alt="Knipsel.PNG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6581323#M259759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-23T18:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6581617#M259760</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;....&amp;nbsp;I want to draw an accurate gear and the guide I linked to seemed to me quite good. The step in the picture is when I get stuck.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not something that can be done with just Array, but I think I've got it, based on their description in the two paragraphs just above that image. &amp;nbsp;One thing I think they could be clearer about is this formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;360° / c&lt;/SPAN&gt;&lt;SUB&gt;pitch&lt;/SUB&gt;&lt;SPAN&gt; * n&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which I think should make it clear that it's &lt;EM&gt;not&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;360° / &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt; c&lt;SUB&gt;pitch&lt;/SUB&gt;&lt;SPAN&gt; * n&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;but rather&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt; 360° / c&lt;SUB&gt;pitch&lt;/SUB&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt; * n&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;[at least that's what I used in the code, after trying the other which gave obviously incorrect results]. &amp;nbsp;See whether this does it for you:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun C:Tooth (/ cir notch dist steps circ ctr rot inc)
  (setq
    cir (vlax-ename-&amp;gt;vla-object (car (entsel "\nPitch Circle: ")))
    notch (car (entsel "\nInitial Notch Polyline: "))
    dist (getdist "\nStepping distance of infinite gear: "); [their "successive offset"]
    steps (getint "\nNumber of steps in defining tooth: ")
    circ (vla-get-Circumference cir); [their C-subscript-pitch]
    ctr (vlax-get cir 'Center)
    rot (* (/ (* pi 2) circ) dist); rotation per step [their "matching angle around the center"]
    inc 0; initially
  ); setq
  (repeat steps
    (command
      "_.copy" notch "" ctr (polar ctr 0 (* dist (setq inc (1+ inc))))
      "_.rotate" "_last" "" ctr (angtos (* rot inc))
    ); command
  ); repeat
); defun&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;It assumes the same orientation as in their images. &amp;nbsp;It requires that square-cornered initial 3-edged notch to be a &lt;EM&gt;single&lt;/EM&gt; Polyline. &amp;nbsp;And it does only &lt;EM&gt;one&lt;/EM&gt; side, so you have to Mirror all the results except the initial one about the midpoint of the initial one's horizontal middle segment. &amp;nbsp;Experiment with the size of the stepping, the number of steps you need to take the shape far enough, etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Do it with Osnap turned off. &amp;nbsp;If it works, the usual bells and whistles can be added, it could be made to do both sides, &lt;EM&gt;possibly&lt;/EM&gt; to draw something like a Spline along the results, etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 21:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6581617#M259760</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-23T21:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6598992#M259761</link>
      <description>&lt;P&gt;I looked at the link you provided. &amp;nbsp;The next step is to draw a curve on the outline of the objects you have shown, just look at their next example as to what you should end up with. &amp;nbsp;Use the pline command or spline command and set endpoint osnap on and pick on the ends of the lines inside the circle, use intersection osnap for the intersections outside the circle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 19:46:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6598992#M259761</guid>
      <dc:creator>GrantsPirate</dc:creator>
      <dc:date>2016-10-03T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599020#M259762</link>
      <description>&lt;P&gt;Hello Nelson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you are thinking of a POLAR array. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 19:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599020#M259762</guid>
      <dc:creator>Llam.Tech</dc:creator>
      <dc:date>2016-10-03T19:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599053#M259763</link>
      <description>&lt;P&gt;Oh sorry guys for my late response. I realised that for my purpose the gears hadn't&amp;nbsp;to be perfect, so I searched for an easier method. Eventually, I used this one:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=UM6o4D4YIcE" target="_blank"&gt;https://www.youtube.com/watch?v=UM6o4D4YIcE&lt;/A&gt;. Anyways thanks for your replies. I didn't expect so many replies.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 19:53:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599053#M259763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-03T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to array while rotating?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599109#M259764</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/21866"&gt;@jay&lt;/a&gt;.llamoso wrote:&lt;BR /&gt;
&lt;P&gt;Hello Nelson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess you are thinking of a POLAR array. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Once the shape of a tooth has been defined, you can use a Polar Array to spread&amp;nbsp;the teeth around the gear, but you &lt;EM&gt;can't&lt;/EM&gt; use it to make the tooth-defining steps in the image in Post 4. &amp;nbsp;A Polar Array makes rotational copies around a &lt;EM&gt;common&lt;/EM&gt; rotation base point, but what's needed is copies &lt;EM&gt;shifted over&lt;/EM&gt; and then each rotated around a base point likewise shifted over, with each successive one shifted farther than the previous one. &amp;nbsp;That's what the guide they linked to is describing, and what the code in Post 5 does. &amp;nbsp;[And if I do say so myself, I think it's pretty cool to watch it do its thing!]&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:18:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-array-while-rotating/m-p/6599109#M259764</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-10-03T20:18:03Z</dc:date>
    </item>
  </channel>
</rss>

