<?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 Simple array in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289751#M7583</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi!&lt;BR /&gt;
I would like to create an object that consists of few blocks placed in a row (with a number of loop steps defined by a user). &lt;BR /&gt;
Then I would like to make it editable, so that user could pick whichever block to be replaced by a different shape (for instance a lower block). &lt;BR /&gt;
I assume that in order to produce such an object I have to use an array. &lt;BR /&gt;
&lt;BR /&gt;
Can anyone explain me how to use an array by means of this example?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have started with this, but I have a feeling that I'm not even close...&lt;BR /&gt;
&lt;BR /&gt;
!!!!!3d script&lt;BR /&gt;
&lt;BR /&gt;
DIM arrayB[]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
FOR i=1 TO nr&lt;BR /&gt;
&lt;BR /&gt;
IF arrayB&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;= 'caly' THEN&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
ELSE&lt;BR /&gt;
BLOCK 1,1,0.5&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
addx 1.5&lt;BR /&gt;
&lt;BR /&gt;
NEXT i &lt;BR /&gt;
&lt;BR /&gt;
!!!!!parameter script:&lt;BR /&gt;
&lt;BR /&gt;
VALUES 'arrayB' 'caly', 'polowa'&lt;BR /&gt;
VALUES 'nr' RANGE[1,10)&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Jun 2016 20:23:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-06T20:23:18Z</dc:date>
    <item>
      <title>Simple array</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289751#M7583</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi!&lt;BR /&gt;
I would like to create an object that consists of few blocks placed in a row (with a number of loop steps defined by a user). &lt;BR /&gt;
Then I would like to make it editable, so that user could pick whichever block to be replaced by a different shape (for instance a lower block). &lt;BR /&gt;
I assume that in order to produce such an object I have to use an array. &lt;BR /&gt;
&lt;BR /&gt;
Can anyone explain me how to use an array by means of this example?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have started with this, but I have a feeling that I'm not even close...&lt;BR /&gt;
&lt;BR /&gt;
!!!!!3d script&lt;BR /&gt;
&lt;BR /&gt;
DIM arrayB[]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
FOR i=1 TO nr&lt;BR /&gt;
&lt;BR /&gt;
IF arrayB&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;= 'caly' THEN&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
ELSE&lt;BR /&gt;
BLOCK 1,1,0.5&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
addx 1.5&lt;BR /&gt;
&lt;BR /&gt;
NEXT i &lt;BR /&gt;
&lt;BR /&gt;
!!!!!parameter script:&lt;BR /&gt;
&lt;BR /&gt;
VALUES 'arrayB' 'caly', 'polowa'&lt;BR /&gt;
VALUES 'nr' RANGE[1,10)&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:23:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289751#M7583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T20:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple array</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289752#M7584</link>
      <description>&lt;BLOCKQUOTE&gt;jasiek772 wrote:&lt;BR /&gt;Hi!&lt;BR /&gt;
I would like to create an object that consists of few blocks placed in a row (with a number of loop steps defined by a user). &lt;BR /&gt;
Then I would like to make it editable, so that user could pick whichever block to be replaced by a different shape (for instance a lower block). &lt;BR /&gt;
I assume that in order to produce such an object I have to use an array. &lt;BR /&gt;
&lt;BR /&gt;
Can anyone explain me how to use an array by means of this example?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have started with this, but I have a feeling that I'm not even close...&lt;BR /&gt;
&lt;BR /&gt;
!!!!!3d script&lt;BR /&gt;
&lt;BR /&gt;
DIM arrayB[]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
FOR i=1 TO nr&lt;BR /&gt;
&lt;BR /&gt;
IF arrayB&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;= 'caly' THEN&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
ELSE&lt;BR /&gt;
BLOCK 1,1,0.5&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
addx 1.5&lt;BR /&gt;
&lt;BR /&gt;
NEXT i &lt;BR /&gt;
&lt;BR /&gt;
!!!!!parameter script:&lt;BR /&gt;
&lt;BR /&gt;
VALUES 'ciag' 'caly', 'polowa'&lt;BR /&gt;
VALUES 'nr' RANGE[1,10)&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;BR /&gt;
&lt;BR /&gt;
you have the right idea,  but there is quite a bit more needed.  If i can muster some time ill see if i cant make it work how you are attempting.&lt;/I&gt;</description>
      <pubDate>Mon, 06 Jun 2016 22:50:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289752#M7584</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2016-06-06T22:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Simple array</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289753#M7585</link>
      <description>ok, that would be great!&lt;BR /&gt;
&lt;BR /&gt;
I have noticed that if I remove 'DIM arrayB[]' then it works, but then of course the dimension of an array is limited, and it is equal to the number of rows stated during creating the parameter, so it is not a dynamic array...</description>
      <pubDate>Tue, 07 Jun 2016 18:00:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Simple-array/m-p/289753#M7585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T18:00:34Z</dc:date>
    </item>
  </channel>
</rss>

