<?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: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting. in Civil 3D Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892607#M13744</link>
    <description>&lt;P&gt;Normally Chat GPT will start inventing lisp functions that don't exist.&amp;nbsp; So thats a hassle.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 22:07:35 GMT</pubDate>
    <dc:creator>brian.strandberg</dc:creator>
    <dc:date>2024-07-11T22:07:35Z</dc:date>
    <item>
      <title>Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12891922#M13740</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to take a selection of block references, that each contain a numerical attribute value, and sum the attribute values in the most streamlined way possible.&amp;nbsp;I have attached a file to give an example of what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had previously posted regarding this same task I hope to streamline, my previous post however, found &lt;A href="https://forums.autodesk.com/t5/civil-3d-customization/block-count-lisp-mod/td-p/12205002" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, was requesting a Lisp routine to handle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since that previous post, I have discovered the 'Count' tool and am confident there is a way to write a custom expression that will read each block's attribute value, add the attributes, and produce a total value for the counted blocks. this expression could then be added as a field to the count table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone who knows coding better than I lend a hand in this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 15:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12891922#M13740</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-11T15:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12891987#M13741</link>
      <description>&lt;P&gt;There is a lisp routine that can do this.&amp;nbsp; Check out:&amp;nbsp;&lt;A href="https://www.lee-mac.com/countattributevalues.html" target="_blank"&gt;https://www.lee-mac.com/countattributevalues.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this on your drawing, and it generated this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brianstrandberg_0-1720714396327.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1385685iACFEC4625632EC2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brianstrandberg_0-1720714396327.png" alt="brianstrandberg_0-1720714396327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then add a SUM in the lowest column, and link that to your other table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 16:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12891987#M13741</guid>
      <dc:creator>brian.strandberg</dc:creator>
      <dc:date>2024-07-11T16:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892120#M13742</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1174056"&gt;@brian.strandberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I thought I had already exhausted the wonderful resources of LeeMac but it appears I missed one of his gems! Now if only I knew enough code to add that sum cell to the table his LISP produces... maybe one day lol&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 17:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892120#M13742</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-11T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892240#M13743</link>
      <description>&lt;P&gt;Well, well, well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chat GPT came in clutch... I was able to have Chat GPT modify the code to output exactly what I needed and nothing more! Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1174056"&gt;@brian.strandberg&lt;/a&gt;&amp;nbsp; for pointing me in the right direction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please enjoy this modified LISP that outputs a total attribute value for selected blocks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 18:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892240#M13743</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-11T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892607#M13744</link>
      <description>&lt;P&gt;Normally Chat GPT will start inventing lisp functions that don't exist.&amp;nbsp; So thats a hassle.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 22:07:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12892607#M13744</guid>
      <dc:creator>brian.strandberg</dc:creator>
      <dc:date>2024-07-11T22:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12898517#M13745</link>
      <description>&lt;P&gt;Yes, I have noticed that getting ChatGPT to produce functional results can be rather tedious, but I am seeing improvements... Especially when I cross reference AI sites, I will ask ChatGPT to write a lisp, then ask Claude.ai to fix it or vice versa. then usually, if my ask is simple enough, I can get something that works to come out of it all... Much like this situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the very least AI tools are allowing me to slowly better understand the language so that maybe one day I can write my own code.&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1174056"&gt;@brian.strandberg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 14:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12898517#M13745</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-15T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12899157#M13746</link>
      <description>&lt;P&gt;That's awesome&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14323096"&gt;@NateSarles&lt;/a&gt;!&amp;nbsp; Keep the efforts going.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 20:01:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12899157#M13746</guid>
      <dc:creator>brian.strandberg</dc:creator>
      <dc:date>2024-07-15T20:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12899574#M13747</link>
      <description>&lt;P&gt;DATAEXTRACTION does this OOTB&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 01:10:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12899574#M13747</guid>
      <dc:creator>Joe-Bouza</dc:creator>
      <dc:date>2024-07-16T01:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12900536#M13748</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/531208"&gt;@Joe-Bouza&lt;/a&gt;, Yes, I am sure it does, but that is a rather tedious process, all I am trying to do is add up the total parking stalls for a given project... so exporting data to an external file and going through that whole process is a bit more than I was bargaining for in this specific case.&lt;/P&gt;&lt;P&gt;In the scenario where more complex data was being evaluated then DATAEXTRACTION is definitely the way to go!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12900536#M13748</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-16T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12902622#M13749</link>
      <description>&lt;P&gt;I get that. Once the dxe file is made it a little quicker but still some effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have AVT? It has a great parking tool with continuous count. Even ADA stalls can be inserted on the fly and broken out it the count&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:42:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12902622#M13749</guid>
      <dc:creator>Joe-Bouza</dc:creator>
      <dc:date>2024-07-17T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12902623#M13750</link>
      <description>&lt;P&gt;I get that. Once the dxe file is made it a little quicker but still some effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have AVT? It has a great parking tool with continuous count. Even ADA stalls can be inserted on the fly and broken out it the count&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:43:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12902623#M13750</guid>
      <dc:creator>Joe-Bouza</dc:creator>
      <dc:date>2024-07-17T10:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12905208#M13751</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/531208"&gt;@Joe-Bouza&lt;/a&gt;&amp;nbsp;, I do have AVT, I just have not yet mastered the parking tool. We mostly just use it for truck turning, (fire, refuse, deliveries.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Learning the parking tool is definitely something on my to-do list!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 12:14:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12905208#M13751</guid>
      <dc:creator>NateSarles</dc:creator>
      <dc:date>2024-07-18T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12906062#M13752</link>
      <description>&lt;P&gt;Like many of us. Its a tool that should have more focus. unfortunately, the style configuring is myriad boxes and settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one lame thing about it is the end cap geometry if used has not geometric labeling&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12906062#M13752</guid>
      <dc:creator>Joe-Bouza</dc:creator>
      <dc:date>2024-07-18T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count tool - How to create a custom expression that sums the block attribute values of the blocks it is counting.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12906589#M13753</link>
      <description>&lt;P&gt;I've used data extraction for years to create simple spreadsheets to calculate parking on ALTA surveys, I had a block for regular/HC spaces, extracted the block attributes to a spreadsheet and computed the totals in the spreadsheet to show on the survey. Worked like a charm.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 23:18:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/count-tool-how-to-create-a-custom-expression-that-sums-the-block/m-p/12906589#M13753</guid>
      <dc:creator>rl_jackson</dc:creator>
      <dc:date>2024-07-18T23:18:51Z</dc:date>
    </item>
  </channel>
</rss>

