Dynamically divided Path Array, omitting last item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
My name is Reinout, I am from The Netherlands. After losing my job as a stage technician due to the Covid-19 Pandemic in 2020 I have started a new career and I am now learning to draw in AutoCAD. I have started studying the software about three months ago and I am very happy to have found a company that offered me a job. I try to learn something new every day and today is no different. That's why I came to the forums to ask for help.
I am working on a dynamic block based on what I learned from this post: https://forums.autodesk.com/t5/dynamic-blocks-forum/variable-array-of-a-dynamic-block/m-p/7548763 (Thank you @MMcCall402 for providing the answer in that thread. I learned a lot from it!)
!! I describe my block and its desired function briefly below !!
!! In the .DWG file I have added a more in dept description and my two attempts at trying to find a solution !!
This part of my block is working:
I created a Path array that stretches until the distance between two items in the array reaches a maximum distance.
When that distance is surpassed, the array adds one extra item and respaces the items so that the distance between them is equal. To do this I have used:
1. A horizontal constraint on the path of the array
2. A User Parameter that divides the distance of the horizontal constraint by the desired maximum distance. Then it rounds the result up to the closest integer to get the number of items in the array.
I would like block to do this in addition:
I want to use this block to place it one after another. It goes around corners and eventually connects to itself and creates a closed circuit. With the current state of the block, every last item of the array would overlap with the first item of the next block. Using the COUNT command now shows a lot of extra items because they are overlapping each other.
I am trying to get the last item to be omitted, while the array pretends it is still there to maintain the correct spacing between the other items. Hiding the item only visually would not be a solution because the COUNT command would still know it is there.
Simply put, the array should do this:
ITEM--------ITEM-------ITEM-------[Emptiness like social life in lockdown]
I call upon the Wizard Council of Dynamic Block Sorcerers; Can you help me create this block and most importantly, teach me how to do it myself in the future?
Thank you all in advance.
-Reinout