<?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: If var contains? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282824#M3915</link>
    <description>Another idea popped into my mind. Is there a way of creating an array based on another array which will only use certain strings? &lt;BR /&gt;
&lt;BR /&gt;
So I have an array of 10 lines..&lt;BR /&gt;
&lt;BR /&gt;
A-1, A-2, A-3, A-4, A-5, B-1, B-2, B-3, B-4, B-5&lt;BR /&gt;
&lt;BR /&gt;
Can I makes those into 2 separate parameter arrays?&lt;BR /&gt;
X =        A-1      Y =         B-1&lt;BR /&gt;
             A-2                     B-2&lt;BR /&gt;
             A-3                     B-3&lt;BR /&gt;
             A-4                     B-4&lt;BR /&gt;
             A-5                     B-5</description>
    <pubDate>Wed, 11 Apr 2018 15:51:46 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2018-04-11T15:51:46Z</dc:date>
    <item>
      <title>If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282818#M3909</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to filter an array of text by searching if it contains a certain string?&lt;BR /&gt;
eg &lt;BR /&gt;
A - 1 &lt;BR /&gt;
A - 2&lt;BR /&gt;
A - 3&lt;BR /&gt;
B - 1&lt;BR /&gt;
B - 2&lt;BR /&gt;
B - 3&lt;BR /&gt;
&lt;BR /&gt;
if *array* contains "A" then&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
Is this a possible thing to do?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:54:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282818#M3909</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-11T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282819#M3910</link>
      <description>Think you can find something like this at page 257 of the GDL reference guide, bit about VALUES{2} where they read string values from a text file and put them in an array.</description>
      <pubDate>Wed, 11 Apr 2018 13:13:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282819#M3910</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-04-11T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282820#M3911</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;Think you can find something like this at page 257 of the GDL reference guide, bit about VALUES{2} where they read string values from a text file and put them in an array.&lt;/BLOCKQUOTE&gt;

The issue is that my list is going to be 2000+ values long so the ability to filter my array is essential. Is there a way to essentially search an array?</description>
      <pubDate>Wed, 11 Apr 2018 13:57:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282820#M3911</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-11T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282821#M3912</link>
      <description>Doing this inside a GDL script sounds like a bad idea in terms of slow down inside ArchiCAD, I suspect.&lt;BR /&gt;
&lt;BR /&gt;
Whatever 2D or 3D display information will eventually end up in the model might constantly look through that long list of things.&lt;BR /&gt;
&lt;BR /&gt;
Is it an option to use properties, where I think you can import tabbed text files to fill property values, which you can then filter and schedule?</description>
      <pubDate>Wed, 11 Apr 2018 14:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282821#M3912</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-04-11T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282822#M3913</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;Doing this inside a GDL script sounds like a bad idea in terms of slow down inside ArchiCAD, I suspect.&lt;BR /&gt;
&lt;BR /&gt;
Whatever 2D or 3D display information will eventually end up in the model might constantly look through that long list of things.&lt;BR /&gt;
&lt;BR /&gt;
Is it an option to use properties, where I think you can import tabbed text files to fill property values, which you can then filter and schedule?&lt;/BLOCKQUOTE&gt;

I thought the same thing. I also thought of the idea to split the files up into different sections but I am struggling to find any sort of way to filter through (if *file 1* = x then use *file 2*. I really don't think there is. &lt;BR /&gt;
&lt;BR /&gt;
Would the using properties include creating a property object? I am not really familiar with creating properties using tabbed text files</description>
      <pubDate>Wed, 11 Apr 2018 14:21:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282822#M3913</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-11T14:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282823#M3914</link>
      <description>So as far as you know, there isn't a way of doing some sort of if string contains "x" then....?</description>
      <pubDate>Wed, 11 Apr 2018 15:43:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282823#M3914</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-11T15:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282824#M3915</link>
      <description>Another idea popped into my mind. Is there a way of creating an array based on another array which will only use certain strings? &lt;BR /&gt;
&lt;BR /&gt;
So I have an array of 10 lines..&lt;BR /&gt;
&lt;BR /&gt;
A-1, A-2, A-3, A-4, A-5, B-1, B-2, B-3, B-4, B-5&lt;BR /&gt;
&lt;BR /&gt;
Can I makes those into 2 separate parameter arrays?&lt;BR /&gt;
X =        A-1      Y =         B-1&lt;BR /&gt;
             A-2                     B-2&lt;BR /&gt;
             A-3                     B-3&lt;BR /&gt;
             A-4                     B-4&lt;BR /&gt;
             A-5                     B-5</description>
      <pubDate>Wed, 11 Apr 2018 15:51:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282824#M3915</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-11T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282825#M3916</link>
      <description>I do not work with big arrays of information, but I remember from the ArchiCAD20 upgrade course I took, that you could use excel sheets and tabbed text files to import information to the then new Properties system. So if it is a matter of displaying and filtering external data, this sounds like an easier method.</description>
      <pubDate>Thu, 12 Apr 2018 07:20:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282825#M3916</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-04-12T07:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: If var contains?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282826#M3917</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;I do not work with big arrays of information, but I remember from the ArchiCAD20 upgrade course I took, that you could use excel sheets and tabbed text files to import information to the then new Properties system. So if it is a matter of displaying and filtering external data, this sounds like an easier method.&lt;/BLOCKQUOTE&gt;

It seems as though using properties isn't going to be an option for me. &lt;BR /&gt;
What I really need is to be able to take a single array and split it into different parameters based on if it contains a certain string. Does anyone know if this is something that is possible to do?</description>
      <pubDate>Thu, 12 Apr 2018 08:46:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/If-var-contains/m-p/282826#M3917</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-12T08:46:15Z</dc:date>
    </item>
  </channel>
</rss>

