<?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 Total of array values in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213712#M18276</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Ok, I am feeling brain dead at the moment..&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have a clean method for getting the sum total of all the values in an array?&lt;BR /&gt;
&lt;BR /&gt;
For example if you a have a 3 dimension array with values of 2'-0": 1'-4": 2'-3" I need the result of 5'-7"&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 10 Oct 2010 18:26:40 GMT</pubDate>
    <dc:creator>Erich</dc:creator>
    <dc:date>2010-10-10T18:26:40Z</dc:date>
    <item>
      <title>Total of array values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213712#M18276</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Ok, I am feeling brain dead at the moment..&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have a clean method for getting the sum total of all the values in an array?&lt;BR /&gt;
&lt;BR /&gt;
For example if you a have a 3 dimension array with values of 2'-0": 1'-4": 2'-3" I need the result of 5'-7"&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Oct 2010 18:26:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213712#M18276</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-10-10T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Total of array values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213713#M18277</link>
      <description>Not sure what you mean by "clean", Erich.  Do you want something more than just a loop, iterating through the indices and summing things up?&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Karl&lt;BR /&gt;
&lt;BR /&gt;
PS  I've been brain dead for two days, so can commiserate. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Sun, 10 Oct 2010 19:27:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213713#M18277</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2010-10-10T19:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Total of array values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213714#M18278</link>
      <description>dim var[3][4]&lt;BR /&gt;
&lt;BR /&gt;
result=0&lt;BR /&gt;
for i=1 to vardim1(var)&lt;BR /&gt;
for j=1 to vardim2(var)&lt;BR /&gt;
result=result+var&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&lt;J&gt;&lt;BR /&gt;
next j&lt;BR /&gt;
next i&lt;BR /&gt;
&lt;BR /&gt;
print result&lt;BR /&gt;
text2 0,0,result&lt;/J&gt;</description>
      <pubDate>Sun, 10 Oct 2010 20:41:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213714#M18278</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-10-10T20:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total of array values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213715#M18279</link>
      <description>Thanks guys. My new son is making sure I can't think straight anymore and I couldn't figure out how to get my loop to work right. Frank hit it right on the nose. I just needed the dummy variable to be the place holder in the loop.</description>
      <pubDate>Mon, 11 Oct 2010 01:32:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Total-of-array-values/m-p/213715#M18279</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-10-11T01:32:48Z</dc:date>
    </item>
  </channel>
</rss>

