<?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: Dynamic Block with build in array Using Lisp or block editor in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019908#M170042</link>
    <description>&lt;P&gt;Ok, updated to the ideal solution.&lt;/P&gt;
&lt;P&gt;Now it resets array angle based on Rise and Tread.&lt;/P&gt;
&lt;P&gt;Array distance is set by that angle and number of stairs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW&lt;/P&gt;
&lt;P&gt;You can use this line to see all the properties you can easily retrieve from selected entity (a block in this case)&lt;/P&gt;
&lt;P&gt;(dumpallproperties (car (entsel)))&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 16:14:19 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2026-02-16T16:14:19Z</dc:date>
    <item>
      <title>Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019333#M170035</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need some help to finish this project. I have created a dynamic block for a stair element section view, where the user can modify the step dimensions. Now I need to find a way to copy/array the objects a user‑defined number of times. For example, if the staircase has 7 steps, the array should move upward and to the right 7 times (as shown with the red dashed example lines).&lt;/P&gt;&lt;P&gt;As you can see in the file, I managed to create a dynamic array (Array_Test) that &lt;EM&gt;almost&lt;/EM&gt; does what I want, but I cannot lock the distance and angle of the array so that they remain constant based on other parameters. Ideally, this array would only ask for the total number of copies and then automatically calculate the angle and distance. Currently it only asks the user to pick an endpoint, which won’t work for this project. (It may seem to work now because I drew red guideline lines for you to snap to, but in a real scenario there will be no correct snap points for Array_Test.)&lt;/P&gt;&lt;P&gt;Requirements:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The objects should align so that the two connection points match (marked by arrows in my DWG).&lt;/LI&gt;&lt;LI&gt;The step parameters must remain editable even after the array is created, so that if there are, for example, 7 steps, the user can still adjust the rise or tread depth dynamically for all iterations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Feb 2026 08:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019333#M170035</guid>
      <dc:creator>anton.chmidtMDYV8</dc:creator>
      <dc:date>2026-02-16T08:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019619#M170038</link>
      <description>&lt;P&gt;Possibly something like this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:DynStairsFlight ( / e n r b a d)
  
  (if (and (setq e (ssget "_+.:E:S" '((0 . "INSERT"))))
	   (setq e (ssname e 0))
	   (setq n (getint "\nNumber of stairs: "))
	   (setq r (getpropertyvalue e "AcDbDynBlockPropertyRise"))
	   (setq b (getpropertyvalue e "AcDbDynBlockPropertyTread"))
	   (setq a (atan (/ r b)))
	   (setq d (/ b (cos a)))
	   )
    (progn
      (setpropertyvalue e "AcDbDynBlockPropertyArray_Test_Distance" (* d n))
      (setpropertyvalue e "AcDbDynBlockPropertyArray_Test_Angle" a)
      ))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019619#M170038</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2026-02-16T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019627#M170039</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12541327"&gt;@anton.chmidtMDYV8&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;.... Ideally, this array would only ask for the total number of copies and then automatically calculate the angle and distance. ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, number of copies is not enough. The angle needs to remain fixed. The routine only calculates the Array_Test_Distance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, the routine above shows you how to get and set the parameters needed. You can adjust the formula as you need.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 13:31:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019627#M170039</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2026-02-16T13:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019786#M170041</link>
      <description>&lt;DIV&gt;&lt;P&gt;This seems like an easy task to complete before we hit the limits of the Block editor/Parameter Manager table, especially since it does not allow us to set an dynamic array path based on a formula.&lt;/P&gt;&lt;P&gt;Ideally, the angle could somehow be calculated by the Block Editor, Parameter Manager, Lisp, or whatever solution we come up with.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The X‑offset of the next step is always equal to the Tread (in example file: 270).&lt;/LI&gt;&lt;LI&gt;The Y‑offset is always equal to the Rise (in example file: 166.7).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In an ideal situation, the Parameter Manager would calculate both the angle and the distance for the array, &lt;STRONG&gt;or&lt;/STRONG&gt; we would somehow generate a invisble helper line to use as the array path.&lt;/P&gt;&lt;P&gt;If we cannot create an ideal solution—meaning a stable and straightforward block with a built‑in array using only the Block Editor—then could we read the values (Tread and Rise) from the block (user can point to the block )&amp;nbsp; and use LISP to copy/array the blocks instead?&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 14:44:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019786#M170041</guid>
      <dc:creator>anton.chmidtMDYV8</dc:creator>
      <dc:date>2026-02-16T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019908#M170042</link>
      <description>&lt;P&gt;Ok, updated to the ideal solution.&lt;/P&gt;
&lt;P&gt;Now it resets array angle based on Rise and Tread.&lt;/P&gt;
&lt;P&gt;Array distance is set by that angle and number of stairs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW&lt;/P&gt;
&lt;P&gt;You can use this line to see all the properties you can easily retrieve from selected entity (a block in this case)&lt;/P&gt;
&lt;P&gt;(dumpallproperties (car (entsel)))&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14019908#M170042</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2026-02-16T16:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14020398#M170047</link>
      <description>&lt;P&gt;Do you really need a dynamic block ? Like 30+ years ago pick 2 points a base point and a top landing point, based on stair rules get min max Rise and run combo that is based on the country of origin stair standards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me&amp;nbsp;&lt;SPAN&gt;AS 1657:2018,&amp;nbsp;&lt;/SPAN&gt;require a maximum of 18 risers per flight, with heights between 115mm–190mm and treads (going) of 240mm–355mm&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some other stuff.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1771287332446.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1619180i3B52A5EB25EA4B4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1771287332446.png" alt="SeaHaven_0-1771287332446.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="SeaHaven_1-1771287373069.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1619181iE3809A3C4D896422/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_1-1771287373069.png" alt="SeaHaven_1-1771287373069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 00:16:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14020398#M170047</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2026-02-17T00:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14021150#M170057</link>
      <description>&lt;DIV&gt;Thanks for the LISP and the &lt;EM&gt;dumpallproperties&lt;/EM&gt; tip.&lt;BR /&gt;Regarding the LISP: does it work properly for you when you change the rise or tread values?&lt;BR /&gt;For me it seems to work with the default values, but when I use different ones, some misalignment happens.&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Feb 2026 13:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14021150#M170057</guid>
      <dc:creator>anton.chmidtMDYV8</dc:creator>
      <dc:date>2026-02-17T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Block with build in array Using Lisp or block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14021230#M170060</link>
      <description>&lt;P&gt;Well, you need to fix your block definition to make work this way.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 14:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dynamic-block-with-build-in-array-using-lisp-or-block-editor/m-p/14021230#M170060</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2026-02-17T14:23:31Z</dc:date>
    </item>
  </channel>
</rss>

