<?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: GDL: fill selection in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268012#M3071</link>
    <description>Will this help? ...&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("class_of_fill", index, class)&lt;BR /&gt;
Returns class of the fill identified by index in the class variable. Causes warning if used in parameter script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Mon, 17 May 2021 15:49:03 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2021-05-17T15:49:03Z</dc:date>
    <item>
      <title>GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268011#M3070</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Is there any way to let the user have select only solid fills (those with %, also named translucent fills)?&lt;BR /&gt;I know there is FILLTYPES_MASK, but thats the type of the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;usage of the fill.&lt;BR /&gt;&lt;BR /&gt;Of course I could just loop through all fills and hope the user has named the fills in a way I can filter them out. But that is too risky for an object that's not used inhouse alone.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:11:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268011#M3070</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-09-14T07:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268012#M3071</link>
      <description>Will this help? ...&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("class_of_fill", index, class)&lt;BR /&gt;
Returns class of the fill identified by index in the class variable. Causes warning if used in parameter script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 17 May 2021 15:49:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268012#M3071</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-05-17T15:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268013#M3072</link>
      <description>Maybe you can use request:&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("class_of_fill", index, class)&lt;BR /&gt;
&lt;BR /&gt;
So, you need to scan all fills, detect only fills with class = 3 (translucent), record all into array and use array in VALUES{2} to limit fills selection.</description>
      <pubDate>Mon, 17 May 2021 15:55:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268013#M3072</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-17T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268014#M3073</link>
      <description>Yeah nice idea, but since you can't use it in the param script this approach doesn't work.&lt;BR /&gt;
Silly.</description>
      <pubDate>Mon, 17 May 2021 17:18:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268014#M3073</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-05-17T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268015#M3074</link>
      <description>To be honest - this limitation when some requests are not working in Parameter script make a lot of nice things to do in GDL impossible.&lt;BR /&gt;
In earlier versions this limitation did not exist. I'm wondering, why not to work on this issue and solve it one day? Post a wish?</description>
      <pubDate>Mon, 17 May 2021 20:46:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268015#M3074</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-17T20:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268016#M3075</link>
      <description>&lt;BLOCKQUOTE&gt;Podolsky wrote:&lt;BR /&gt;
To be honest - this limitation when some requests are not working in Parameter script make a lot of nice things to do in GDL impossible.
&lt;/BLOCKQUOTE&gt;

True .... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I "solved" this issue by defining a translucent fill and the user can determine the transparency.&lt;BR /&gt;
But man, still a silly way.</description>
      <pubDate>Tue, 18 May 2021 09:02:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268016#M3075</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-05-18T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268017#M3076</link>
      <description>I know how to do it!&lt;BR /&gt;
&lt;BR /&gt;
First set a variable for the fill as integer (small cubes icon). The name of variable is customFill&lt;BR /&gt;
&lt;BR /&gt;
Then write this code in parameter script:&lt;BR /&gt;

&lt;PRE&gt;DIM fillsIndexArray[]
DIM fillsNameArray[]

FOR n=1 TO 1000
	fillsIndexArray&lt;N&gt;=n
	fillsNameArray&lt;N&gt;=STR(n, 1, 0)
NEXT n

VALUES{2} "customFill", fillsIndexArray, fillsNameArray&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;

And then this code in User Interface script:&lt;BR /&gt;

&lt;PRE&gt;DIM fillsIndexArray[]
DIM fillsNameArray[]
DIM pixIdxArray[]

m=1

FOR n=1 TO 1000

	rClass = REQUEST ("class_of_fill", n, class)
	IF rClass THEN
		IF class=3 THEN	
			rName = REQUEST ("Name_of_fill", n, name)
			IF rName THEN
				fillsIndexArray&lt;M&gt;=n
				fillsNameArray&lt;M&gt;=name
				pixIdxArray&lt;M&gt;=''
				m=m+1
			ENDIF
		ENDIF
	ENDIF

NEXT n

UI_INFIELD{4} "customFill", 5, 65, 200, 20,
				8, "",
				0,0,0,0,0,0,
				pixIdxArray, fillsNameArray, fillsIndexArray&lt;/M&gt;&lt;/M&gt;&lt;/M&gt;&lt;/PRE&gt;

Result is showing on preview image. You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.</description>
      <pubDate>Tue, 18 May 2021 10:07:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268017#M3076</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-18T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268018#M3077</link>
      <description>Nice GDL Kung Fu.&lt;BR /&gt;
Love it, thanks Podolsky.</description>
      <pubDate>Tue, 18 May 2021 10:48:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268018#M3077</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-05-18T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268019#M3078</link>
      <description>&lt;BLOCKQUOTE&gt;Podolsky wrote:&lt;BR /&gt;You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Hey Podolsky, how would you go about achieving this? Also, is there a way to check if a fill exists or not?&lt;BR /&gt;
&lt;BR /&gt;
I saw this &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?p=324414#p324414" target="_blank"&gt;thread&lt;/A&gt; but do not get what is happening...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Wed, 21 Jul 2021 02:00:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268019#M3078</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-07-21T02:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: fill selection</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268020#M3079</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Podolsky wrote:&lt;BR /&gt;You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Hey Podolsky, how would you go about achieving this? Also, is there a way to check if a fill exists or not?&lt;BR /&gt;
&lt;BR /&gt;
I saw this &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?p=324414#p324414" target="_blank"&gt;thread&lt;/A&gt; but do not get what is happening...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.
&lt;/BLOCKQUOTE&gt;

Please look as Schedule Setting Tool from my library, at the end of Parameter script there is subroutine that organising arrays in alphabetical order. &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=37&amp;amp;t=72947" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?f=37&amp;amp;t=72947"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=37&amp;amp;t=72947&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 21 Jul 2021 04:04:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-fill-selection/m-p/268020#M3079</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-21T04:04:32Z</dc:date>
    </item>
  </channel>
</rss>

