<?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 make two circle follow path in autocad? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126996#M31948</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if anyone can help me resolve this it would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can not be done in AutoCAD.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid you have to rotate the items manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The video shows how I would do that:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6331855791112w960h540r234" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6331855791112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6331855791112w960h540r234');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6331855791112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is of course not an assoziataive array, but you get &lt;U&gt;&lt;STRONG&gt;precisely&lt;/STRONG&gt;&lt;/U&gt; adjusted items along the path (&lt;U&gt;all&lt;/U&gt; centerpoints are placed correct).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 08:52:01 GMT</pubDate>
    <dc:creator>j.palmeL29YX</dc:creator>
    <dc:date>2023-07-26T08:52:01Z</dc:date>
    <item>
      <title>how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126609#M31944</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm having problem when i try to make two circle to follow path using path array function.&lt;/P&gt;&lt;P&gt;the problem is, the first circle follow my path correctly but the second one isn't.&lt;/P&gt;&lt;P&gt;i have snap the picture to make it clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if anyone can help me resolve this it would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 04:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126609#M31944</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-07-26T04:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126787#M31945</link>
      <description>&lt;P&gt;I think you tried to create an array path from a block. The &lt;STRIKE&gt;block&lt;/STRIKE&gt; array base point is the first circle center point. When AutoCAD creates the array, it places the block on the base point, then rotates the block aligned to the path. That is why the 1st circle is always on the path, but the 2nd circle is not.&lt;/P&gt;
&lt;P&gt;You need to think about how it works, then move the base point to achieve what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:58:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126787#M31945</guid>
      <dc:creator>edwin.prakoso</dc:creator>
      <dc:date>2023-07-26T07:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126816#M31946</link>
      <description>&lt;P&gt;Yes, i use block on the model.&lt;/P&gt;&lt;P&gt;i have tried to explode it but it still wont come up as i wanted.&lt;/P&gt;&lt;P&gt;is there any way that block have 2 base point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126816#M31946</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-07-26T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126910#M31947</link>
      <description>&lt;P&gt;I haven't used the array path for a long time. Please forget what I said about the block basepoint. Apparently you can change the array base point without altering the block.&lt;/P&gt;
&lt;P&gt;See the difference between these two arrays. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="basepoint changes.png" style="width: 420px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1245089iA1787D55DECADA5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="basepoint changes.png" alt="basepoint changes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The 2nd one was created by moving the array base point to the center of the block.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="array base point tool.png" style="width: 262px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1245090i43346105E95522E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="array base point tool.png" alt="array base point tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="array base point.png" style="width: 202px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1245091iCE9C4CB8AC69FE6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="array base point.png" alt="array base point.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Check if this works for you. Remember that now the center of the block will be coincident with the path, but both of the circles' centers maybe not.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:57:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126910#M31947</guid>
      <dc:creator>edwin.prakoso</dc:creator>
      <dc:date>2023-07-26T07:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126996#M31948</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if anyone can help me resolve this it would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can not be done in AutoCAD.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid you have to rotate the items manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The video shows how I would do that:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6331855791112w960h540r979" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6331855791112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6331855791112w960h540r979');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6331855791112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is of course not an assoziataive array, but you get &lt;U&gt;&lt;STRONG&gt;precisely&lt;/STRONG&gt;&lt;/U&gt; adjusted items along the path (&lt;U&gt;all&lt;/U&gt; centerpoints are placed correct).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:52:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12126996#M31948</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2023-07-26T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12127339#M31949</link>
      <description>&lt;P&gt;Or you can use constraints but only if the path is within a block it self overwise it will warp. And the path inside that block can not be a spline. If it would be the case then it would need a FLATEN command....&lt;/P&gt;
&lt;P&gt;My solution is nice but may put you far from the point that the division gave !&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tramber_0-1690371157937.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1245165iE9F38466AE6223DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tramber_0-1690371157937.png" alt="tramber_0-1690371157937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 11:32:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12127339#M31949</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2023-07-26T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12127538#M31950</link>
      <description>&lt;P&gt;For the items in the array that don't align use the subselect option by holding down the CTRL key to select individual items in the array to move and rotate them. See more information here:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-27321B8F-C67E-4EF9-9A25-C5444330E5F2" target="_blank" rel="noopener"&gt;Modify individual array items &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Nancy&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:45:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12127538#M31950</guid>
      <dc:creator>neaton</dc:creator>
      <dc:date>2023-07-26T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132438#M31951</link>
      <description>&lt;P&gt;thank you for your video.&lt;/P&gt;&lt;P&gt;i did this the whole time, but it's kinda repetitive that's why i wonder is there any other way to make it faster.&lt;/P&gt;&lt;P&gt;appreciate it tho&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 01:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132438#M31951</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-07-28T01:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132456#M31952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for your advice, i did what you've suggest, but it still won't follow the path&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="darryl_sumiranada2_0-1690507833302.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1246210i72CDFD426C1B9701/image-size/medium?v=v2&amp;amp;px=400" role="button" title="darryl_sumiranada2_0-1690507833302.png" alt="darryl_sumiranada2_0-1690507833302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and also when should i use FLATEN command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 01:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132456#M31952</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-07-28T01:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132677#M31953</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.. is there any other way to make it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the attached LISP which defines a new command TEST.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To rotate the items (after prepairing as said above: draw an additional Circle in the block definition, create the array with not aligned items, explode the array) start the Lisp. Now pick the item at the second circle, drag the item to the intersection with the path and pick again. Repeat the command with an ENTER or SPACE and again pick twice (at the small circle of the block and at the intersection).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6331974802112w960h540r838" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6331974802112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6331974802112w960h540r838');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6331974802112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For each item you need only two Pick's.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that fast enough?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the (quick and dirty) LISP. Of course you can refine it as you need.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:test (/)
  (setq osold (getvar "osmode"))
  (setvar "osmode" 36)
  (setq item (entsel "\nSelect item: "))
  (setq obj (car item))
  (setq ppoint (cdr item))
  (setq bpoint (cdr (assoc 10 (entget obj))))
  (command "_rotate" obj "" bpoint "_r" 0 pause)
  (setvar osmode (getvar osold))
)&lt;/LI-CODE&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;[EDIT]:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an additional small impovement you can run the MULTIPLE command before you start the Lisp the first time. So you avoid the ENTER or SPACE&amp;nbsp; to repeat the command and you need only repeatedly&lt;/P&gt;
&lt;P&gt;- pick the (small right) circle&lt;/P&gt;
&lt;P&gt;- pick the intersection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same effect you can achieve if you add a while or repeat loop in the LISP. A lot of possibilities ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 02:45:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132677#M31953</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2023-07-29T02:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132790#M31954</link>
      <description>&lt;P&gt;To answer you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;My solution is more convenient with an array that has been exploded. It is only a second manipulation.&lt;/P&gt;
&lt;P&gt;In such a case, i was meaning that tangency constraint can only apply to a polyline and not to a spline. Flatten easily turn a spline to a polyline...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 06:36:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12132790#M31954</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2023-07-28T06:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12133926#M31955</link>
      <description>&lt;P&gt;If I understand what you're wanting correctly, I think you need to ensure the center point of your block is snapped to the &lt;EM&gt;starting point&lt;/EM&gt; of the path. A similar issue came up recently in &lt;A href="https://forums.autodesk.com/t5/autocad-forum/array-of-rectangles-not-consistently-placed-on-array-path/m-p/11893542/highlight/true#M1103413" target="_blank" rel="noopener"&gt;another thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 16:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12133926#M31955</guid>
      <dc:creator>nrz13</dc:creator>
      <dc:date>2023-07-28T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12140187#M31956</link>
      <description>&lt;P&gt;Thank you very much, this is my first time use LISP, and it turns out to be exciting.&lt;/P&gt;&lt;P&gt;appreciate it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 03:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12140187#M31956</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-08-01T03:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12141436#M31957</link>
      <description>&lt;P&gt;EDIT 8/9/2023&amp;nbsp; Please see improved code in post #19.&amp;nbsp; LRM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following program will "usually" position an array of blocks along a spline with rotations determined by the block's base point and a point on the block's x axis a distance "L"&amp;nbsp; .&amp;nbsp; The bisection numerical method is used to find the location of the point on the spline a distance L from the block's base point.&amp;nbsp; If the spline is well behaved (no radical tight curves) a satisfactory solution can be determined.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1690899809155.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1247779i2FEBE42B64CC9065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1690899809155.png" alt="leeminardi_0-1690899809155.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_1-1690899832913.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1247780i691C7D0B4A2A4A2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_1-1690899832913.png" alt="leeminardi_1-1690899832913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For very irregular shaped splines a satisfactory solution may not be determined.&amp;nbsp; For example, note how the first block (bottom left) could be at a steeper angle.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_2-1690899980319.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1247784iB47FE92B971DF202/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_2-1690899980319.png" alt="leeminardi_2-1690899980319.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've only done limited testing.&amp;nbsp; I used the attached drawing to test the program which assumes a value of 1.3 for L.&amp;nbsp; I used A = 1 for the spacing in this example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:test (/ L A path pt smax dmax n s1 p1 L1 sm s0 s1 dm pt ang j)
;  Adds blocks along a spline.  The block's origin is placed on the spline.
;  The angle of the block is determined by a second point a distance L in the X
; direction of the spline.  The block's have a spacing of A. 
; L. Minardi 8/1/2023  v4
  (command "ucs" "w")
  (setvar 'osmode 0)
  (setq L (getreal "\nEnter distance between the block's base point and a point on the block's x axis: "))
  (setq A (getreal "\nEnter distance to next block: "))
(setq blockname (getstring "\nEnter block name: "))
;(setq L 1.3 A 1 blockname "block1") ; used for debugging
  (setq
    path (car (entsel "\nSelect Path."))
    pt	 (vlax-curve-getStartPoint path)
    smax  (vlax-curve-getEndParam path)
    dmax (vlax-curve-getDistAtParam path smax)
    n (+ (/ dmax (+ L A)) 1)
    s1 smax
    p1 (vlax-curve-getPointAtParam path s1)
    L1 (distance pt p1)
    sm 0.
  )
(setq j 1)
(while (&amp;lt; j n)
  (if (equal sm 0)
    (setq s0 0)
    (progn
      (setq dm (vlax-curve-getDistAtParam path sm))
      (setq pt (vlax-curve-getPointAtDist path (+ dm A)))
      (setq s0 (vlax-curve-getParamAtPoint path pt))
    )
  )
  (SplinePtAtDist path pt L s0 s1)
  (setq ang (/ (* (angle pt pm) 180.) pi))
  (command "-insert" blockname pt 1 1 ang)
  (setq j (+ j 1))
)					; end j while
(princ)  
)

(defun SplinePtAtDist (path pt L s0 s1 / i  )
; find the point on the spline that is a distance L from the point pt
; in the parametric interval s0 to s1 using bisection method. 
(setq i 0)
(while (&amp;lt; i 20) ; sets maximum interations
(setq sm (/ (+ s0 s1) 2)) ; midpoint between s0 and s1
(setq pm   (vlax-curve-getPointAtParam path sm)) ; point at sm
  (if (&amp;lt; (distance pt pm) L) ; determine if soln between so and sm, or sm and s1
    (setq s0 sm
	  p0 (vlax-curve-getPointAtParam path s0)
    )
    (setq s1 sm
	  p1 (vlax-curve-getPointAtParam path s1)
    )
  )
;;;(command "point" pm)  ; used for debugging
(setq i (+ i 1))
(setq err (/ (abs (- (distance pt pm) L)) L))
(if (&amp;lt;  err 0.001)
  (setq i 100)
  )
) ; end while
)  &lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 18:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12141436#M31957</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-08-09T18:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12141992#M31958</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd suggest in Line 35 of the LISP a small correction:&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(command "-insert" &lt;STRONG&gt;blocknam&lt;/STRONG&gt;e pt 1 1 ang) ;;; "block1" substituted by&amp;nbsp;&lt;STRONG&gt;blockname&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/822616"&gt;@leeminardi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A nice work, thanks. This answer should be accepted as solution. I've had a similar intention, but was not able to write such a LISP.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12141992#M31958</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2023-08-01T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12142399#M31959</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952317"&gt;@j.palmeL29YX&lt;/a&gt;&amp;nbsp;thanks for the compliment and catching the error on line 35. I had hard wired the block name during the debugging process and forget to change it back to a variable before posting.&amp;nbsp; I have corrected the code in my post.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 21:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12142399#M31959</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-08-01T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12143202#M31960</link>
      <description>&lt;P&gt;wow, this is perfect, but to be honest i'm still learning how this whole things work.&lt;/P&gt;&lt;P&gt;but it gets interesting, any hint where to start to learn about this LISP?&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 06:45:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12143202#M31960</guid>
      <dc:creator>darryl_sumirana.da2</dc:creator>
      <dc:date>2023-08-02T06:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12143344#M31961</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8564798"&gt;@darryl_sumirana.da2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;any hint where to start to learn about this LISP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; for each (german) AutoLISP beginner you find &lt;A href="http://www.autolisp.info/impressum.html" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(In the meantime it is also pulished as book [in german language])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 07:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12143344#M31961</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2023-08-02T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to make two circle follow path in autocad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12160554#M31962</link>
      <description>&lt;P&gt;I was not satisfied with the version of the program I posted in post #14. The numerical algorithm I created to find a point (p) on a spline a specified distance (L) from a known point (pt) used a point midway along the spline for the first guess. It then used the bisection numerical method to find p. In some cases, this would not find the closest solution point to pt.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_1-1691605799609.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1251377iB9E30333C39EB2E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_1-1691605799609.png" alt="leeminardi_1-1691605799609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I rewrote the program to assume that the first guess for P was at a distance L, measured along the spline. This will always yield a point too close to pt to be the solution (except if the spline is straight) but not so far away either. From there the algorithm "walks" along the spline at a step size 1/3*L until it passes the solution and then backs up one half the step size until that's too much then goes forward 1/4 the step size. The process is repeated until a location for p within acceptable limits is found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this approach yields much better results for very wavy spline but I am sure there are cases that will yield unacceptable results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compare the following solutions via the first method and the new approach.&lt;/P&gt;&lt;P&gt;First method example results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_2-1691605998356.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1251380iBCFC71EE63480F39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_2-1691605998356.png" alt="leeminardi_2-1691605998356.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Improved version:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_3-1691606032312.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1251381i531415F628499238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_3-1691606032312.png" alt="leeminardi_3-1691606032312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get a feel for how the algorithm converges to a solution here is a sample with points placed at the successive guesses made by the program. Note how some solutions are found in as little as 3 guesses.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_4-1691606075365.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1251382iC227B13777FE9E7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_4-1691606075365.png" alt="leeminardi_4-1691606075365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Points showing successive guesses.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_5-1691606151650.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1251384i638C87D11977264E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_5-1691606151650.png" alt="leeminardi_5-1691606151650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note, I recently posted a tutorial for 3ds Max users on using a similar method to find the point on a cable that is a fixed distance from a trolley with an overhead boom. I think it provides a good explanation how a numerical solution (i.e., a solver) works.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=w57ufZMw8hQ" target="_blank" rel="noopener"&gt;3ds Max Tutorial - creating your own solver&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:ArraySpline (/ L A blockname path pt smax smax dmax sL more p ang sp dpt )
;  Adds a series of blocks along a spline.  The block's origin is placed on the spline.
;  The angle of the block is determined by a second point of the block a distance L in the X
; direction of the block.  The block's have a user defined  spacing of A. 
; L. Minardi 8/9/2023 
  (command "ucs" "w")
  (setvar 'osmode 0)
(setq L (getreal
	  "\nEnter distance between the block's base point and a point on the block's x axis: "
		)
      A		(getreal "\nEnter distance to next block: ")
      blockname	(getstring "\nEnter block name: ")
)
;(setq L 1.3 A 1 blockname "block1") ; used for debugging
  (setq
    path (car (entsel "\nSelect Path."))
    pt	 (vlax-curve-getStartPoint path)
    smax (vlax-curve-getEndParam path)
    dmax (vlax-curve-getDistAtParam path smax)
    sL	 (vlax-curve-getParamAtDist path L)
    more T				; flag for loop  
  )
  (while more				; loop for adding blocks until end of spline is reached
    (setq p   (SplinePtAtDist path pt L) ; location on spline for block's second point
	  ang (/ (* (angle pt p) 180.) pi)
    )
    (command "-insert" blockname pt 1 1 ang)
    (setq dp  (vlax-curve-getDistAtPoint path p) ; distance to p
	  sp  (vlax-curve-getParamAtPoint path p) ; parameter at p
	  pt  (vlax-curve-getPointAtDist path (+ dp A)) ; next block location
	  p   (vlax-curve-getPointAtDist path (+ dp A L)) ; initial guess for second point on spline 
	  dpt (vlax-curve-getDistAtPoint path pt) ; distance along spline to pt
    )
    (if	(&amp;lt; (- sMax sp) sL)		; test if another block will fit on spline
      (setq more nil)
    )
  )					; end  while
  (princ)
)

(defun SplinePtAtDist (path pt  L  / disPt p s spt sDelta i sgn err)
; find the point on a spline that is a distance L from the point pt, 
; path - spline object name
; pt - known point on the spline that is closer to the beinning of the spline
;      than the desired point p that is a straingt line distance L away.  
; L - distance between the block's base point and a point on its x axis.

(setq disPt  (vlax-curve-getDistAtPoint path pt)
      p	     (vlax-curve-getPointAtDist path (+ disPt L))
      s	     (vlax-curve-getParamAtPoint path p)
      spt    (vlax-curve-getParamAtPoint path pt)
      sDelta (/ (- s spt) 3)
      i	     0
      sgn 1
)
(while (&amp;lt; i 20) ; sets maximum interations for solution
(if (&amp;gt; L (distance pt p)) 
  (progn ; true, L &amp;gt; distance
    (if	(&amp;gt; (* sgn -1) 0)
      (setq sgn	   (* sgn -1)  ; reverse search diection 
	    sDelta (/ sDelta 2); halve the interval search size
      )
    )
  )
  (progn ; false L not &amp;gt; distance
    (if	(&amp;lt; (* sgn -1) 0)
      (setq sgn	   (* sgn -1)
	    sDelta (/ sDelta 2)
      )
    )
  )
)
(setq s	(+ s (* sgn sDelta))
      p	(vlax-curve-getPointAtParam path s)
)
;;;(command "point" p)  ; used for debugging
(setq i (+ i 1))
(setq err (/ (abs (- (distance pt p) L)) L))
(if (&amp;lt; err 0.001) (setq i 100)) ; exit loop if error acceptable
) ; end while
  (setq p p)
) ; end defun   &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 18:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-two-circle-follow-path-in-autocad/m-p/12160554#M31962</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-08-09T18:41:48Z</dc:date>
    </item>
  </channel>
</rss>

