Dynamic Block with build in array Using Lisp or block editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
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).
As you can see in the file, I managed to create a dynamic array (Array_Test) that almost 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.)
Requirements:
- The objects should align so that the two connection points match (marked by arrows in my DWG).
- 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.
Thank you!