<?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: Dynamically divided Path Array, omitting last item in Dynamic Blocks Forum</title>
    <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10663334#M8885</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the suggestion you made. I have tried to replicate your idea so I could test if it's a viable solution for my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The paths that my block is going to make are not always closed trajectories. If every block would deduct 1 item from the calculation it would cause an incorrect result when the chained blocks do not form a closed trajectory. (Image below)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2021-10-03_15-50-07.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/972730i263E6E5FFB34347B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2021-10-03_15-50-07.png" alt="image_2021-10-03_15-50-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can see a solution in manually placing an overlapping block at the end of the trajectory. But since &lt;STRONG&gt;visually &lt;/STRONG&gt;the last item is present in the dynamic block it's an easy mistake to forget placing the overlapping block. That would cause problems in the financial calculation later on outside of AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your suggestion is not the 'Holy Grail' solution I am looking for. But&amp;nbsp;I am very happy that you shared your suggestion with me because I did not know it was possible to use fields and formulas within block attributes. I learned a lot from trying to recreate your idea and I'm going to use attributes with fields in new blocks I am working on! So thank you for teaching me about that.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Oct 2021 13:55:24 GMT</pubDate>
    <dc:creator>reinout.devlaming</dc:creator>
    <dc:date>2021-10-03T13:55:24Z</dc:date>
    <item>
      <title>Dynamically divided Path Array, omitting last item</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10645116#M8883</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Everyone,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My name is Reinout&lt;/STRONG&gt;, 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a dynamic block based on what I learned from this post: &lt;A href="https://forums.autodesk.com/t5/dynamic-blocks-forum/variable-array-of-a-dynamic-block/m-p/7548763" target="_blank"&gt;https://forums.autodesk.com/t5/dynamic-blocks-forum/variable-array-of-a-dynamic-block/m-p/7548763&amp;nbsp;&lt;/A&gt;(Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3215587"&gt;@MMcCall402&lt;/a&gt; for providing the answer in that thread. I learned a lot from it!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;U&gt;&lt;FONT color="#993300"&gt;&lt;EM&gt;!! I describe my block and its desired function briefly below !!&lt;/EM&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;U&gt;&lt;FONT color="#993300"&gt;&lt;EM&gt;!! In the .DWG file I have added a more in dept description and my two attempts at trying to find a solution !!&lt;/EM&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;This part of my block is working:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created a Path array that stretches until the distance between two items in the array reaches a maximum distance.&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;1. A horizontal constraint on the path of the array&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like block to do this in addition:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 &lt;EM&gt;visually&lt;/EM&gt; would not be a solution because the COUNT command would still know it is there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply put, the array should do this:&lt;/P&gt;&lt;P&gt;ITEM--------ITEM-------ITEM-------[Emptiness like social life in lockdown]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Reinout&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10645116#M8883</guid>
      <dc:creator>reinout.devlaming</dc:creator>
      <dc:date>2021-09-24T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically divided Path Array, omitting last item</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10648735#M8884</link>
      <description>&lt;P&gt;How about adding an attribute to display the correct number of arrayed objects?&amp;nbsp; &amp;nbsp;You could place it on a non-plotting layer/color.&amp;nbsp; You could also access it with a Data extraction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An attribute with a field with the formula below could work.&amp;nbsp; The formula uses a field to access the ArrayPathDivide value and then subtracts 1 for the last one in the array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 602px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/969949i0551C13609B066C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 01:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10648735#M8884</guid>
      <dc:creator>MMcCall402</dc:creator>
      <dc:date>2021-09-27T01:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically divided Path Array, omitting last item</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10663334#M8885</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the suggestion you made. I have tried to replicate your idea so I could test if it's a viable solution for my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The paths that my block is going to make are not always closed trajectories. If every block would deduct 1 item from the calculation it would cause an incorrect result when the chained blocks do not form a closed trajectory. (Image below)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2021-10-03_15-50-07.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/972730i263E6E5FFB34347B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2021-10-03_15-50-07.png" alt="image_2021-10-03_15-50-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can see a solution in manually placing an overlapping block at the end of the trajectory. But since &lt;STRONG&gt;visually &lt;/STRONG&gt;the last item is present in the dynamic block it's an easy mistake to forget placing the overlapping block. That would cause problems in the financial calculation later on outside of AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your suggestion is not the 'Holy Grail' solution I am looking for. But&amp;nbsp;I am very happy that you shared your suggestion with me because I did not know it was possible to use fields and formulas within block attributes. I learned a lot from trying to recreate your idea and I'm going to use attributes with fields in new blocks I am working on! So thank you for teaching me about that.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 13:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10663334#M8885</guid>
      <dc:creator>reinout.devlaming</dc:creator>
      <dc:date>2021-10-03T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically divided Path Array, omitting last item</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10664198#M8886</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11304552"&gt;@reinout.devlaming&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.. my problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The paths that my block is going to make are not always closed trajectories.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, I don't understand what you want to do. Would you please explain what you expect as result. Can you post the block what you have until now please?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 04:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamically-divided-path-array-omitting-last-item/m-p/10664198#M8886</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2021-10-04T04:52:44Z</dc:date>
    </item>
  </channel>
</rss>

