<?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 LM: Incremental Array in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10854348#M50574</link>
    <description>&lt;P&gt;Code: &lt;A href="http://www.lee-mac.com/incrementalarray.html" target="_blank" rel="noopener"&gt;http://www.lee-mac.com/incrementalarray.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like it should be simple to do this, but maybe not. Does anyone know how to modify the Dynamic Incremental Array to end with allowing the user to place one final object freely?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: select objects to array -&amp;gt;&amp;nbsp;&lt;SPAN class=""&gt;incarrayd&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;gt; input offset value -&amp;gt; pick basepoint - &amp;gt; array objects -&amp;gt; then you can place one more using the original basepoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most of the time I use this command the final object to be placed isn't evenly spaced with everything else.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 05:42:16 GMT</pubDate>
    <dc:creator>nathanwheeler27</dc:creator>
    <dc:date>2022-01-03T05:42:16Z</dc:date>
    <item>
      <title>LM: Incremental Array</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10854348#M50574</link>
      <description>&lt;P&gt;Code: &lt;A href="http://www.lee-mac.com/incrementalarray.html" target="_blank" rel="noopener"&gt;http://www.lee-mac.com/incrementalarray.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like it should be simple to do this, but maybe not. Does anyone know how to modify the Dynamic Incremental Array to end with allowing the user to place one final object freely?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: select objects to array -&amp;gt;&amp;nbsp;&lt;SPAN class=""&gt;incarrayd&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;gt; input offset value -&amp;gt; pick basepoint - &amp;gt; array objects -&amp;gt; then you can place one more using the original basepoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most of the time I use this command the final object to be placed isn't evenly spaced with everything else.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 05:42:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10854348#M50574</guid>
      <dc:creator>nathanwheeler27</dc:creator>
      <dc:date>2022-01-03T05:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: LM: Incremental Array</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10855390#M50575</link>
      <description>&lt;P&gt;Perhaps you can just move the last object (command "move" "l" "" bpt pause)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 18:35:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10855390#M50575</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-01-03T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: LM: Incremental Array</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10855657#M50576</link>
      <description>&lt;P&gt;Hmm, not quite. If a group of objects are being arrayed, it only moves the last object, not the whole group. It also uses the originally selected basepoint, but I need it to be relative to the last placed object/group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was definitely over thinking it before, so if I can figure out how to get a few variables, the "move" command is probably what I want to use. I will post what I come up with later today if I get it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 18:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10855657#M50576</guid>
      <dc:creator>nathanwheeler27</dc:creator>
      <dc:date>2022-01-03T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: LM: Incremental Array</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10858633#M50577</link>
      <description>&lt;P&gt;SOLUTION:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This snippet of code goes before the last &lt;EM&gt;(princ)&lt;/EM&gt; in&amp;nbsp;&lt;EM&gt;&lt;SPAN style="font-family: inherit;"&gt;defun&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;LM:incarray&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;; Move the last object(s) in the array
    (setq ii 0 movelist (list))
    (while (&amp;lt; ii (length lst))
      
      (setq movelist (cons (vlax-vla-object-&amp;gt;ename (nth ii obl)) movelist)) ; List of objects to move
      
      (setq ii (+ 1 ii))
    )
    
    (setq movess (ssadd))
    (foreach item movelist
      (ssadd item movess) ; Convert list of objects to selection set
    )
  
    (command "move" movess "" (polar bpt (angle bpt (car (cdr ept))) (* (fix qty) (distance '(0 0 0) vxu))) pause) ; Move objects
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might be a more efficient way to do this, but it works.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 06:27:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lm-incremental-array/m-p/10858633#M50577</guid>
      <dc:creator>nathanwheeler27</dc:creator>
      <dc:date>2022-01-05T06:27:19Z</dc:date>
    </item>
  </channel>
</rss>

