<?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: Value list for arrayed parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151626#M24210</link>
    <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;I don't think it is possible.&lt;BR /&gt;
I would use hotspots to make a three positions switch.&lt;BR /&gt;
Easy way to graphically change the types of window, in 3D or 2D.
&lt;/BLOCKQUOTE&gt;

Thanks Oliver.&lt;BR /&gt;
This is exactly what I am doing.&lt;BR /&gt;
The thing is my window can have anything from 1 to 6 panels horizontally and 1 to 6 panels vertical.&lt;BR /&gt;
So anything from 1 to 36 panels and each can be set to awning, louvre or fixed individually.&lt;BR /&gt;
So I was hoping arrays could help.&lt;BR /&gt;
I am using arrays for the frame positioning but it seems it is not possible for the frame type.&lt;BR /&gt;
&lt;BR /&gt;
It can still be done - I just need to repeat the script 36 times!&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 26 Jun 2009 03:41:24 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2009-06-26T03:41:24Z</dc:date>
    <item>
      <title>Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151621#M24205</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I know how to set up a VALUE list for a standard parameter.&lt;BR /&gt;
&lt;BR /&gt;
VALUES "param_name" "value_1', "value_2", ......&lt;BR /&gt;
&lt;BR /&gt;
But is it possible to set a value list for an arrayed parameter?&lt;BR /&gt;
Something like ...&lt;BR /&gt;
VALUES "param_name [1][1]" "value_1', "value_2", ......&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have a window that has a variable number of horizontal and vertical panels.&lt;BR /&gt;
Each of these panels can be fixed (F), awning (A) or louvre (L).&lt;BR /&gt;
At the moment I have each panel listed with a separate parameter as that is the only way I can get the value list to work.&lt;BR /&gt;
&lt;BR /&gt;
Am I overlooking something obvious or can it not be done?&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:57:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151621#M24205</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-05-24T09:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151622#M24206</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
if you are just wanting to set the values for the parameter array, then just click the array button next to the parameter you are setting up? if that makes sense.</description>
      <pubDate>Thu, 25 Jun 2009 04:18:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151622#M24206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-25T04:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151623#M24207</link>
      <description>&lt;BLOCKQUOTE&gt;sdb wrote:&lt;BR /&gt;Hi&lt;BR /&gt;
&lt;BR /&gt;
if you are just wanting to set the values for the parameter array, then just click the array button next to the parameter you are setting up? if that makes sense.&lt;/BLOCKQUOTE&gt;

I want to give the user a list of values to choose from.&lt;BR /&gt;
Just as you can with a standard parameter.&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 25 Jun 2009 04:23:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151623#M24207</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-06-25T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151624#M24208</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;But is it possible to set a value list for an arrayed parameter?&lt;BR /&gt;
Something like ...&lt;BR /&gt;
VALUES "param_name [1][1]" "value_1', "value_2", ......&lt;/BLOCKQUOTE&gt;

I don't think it is possible.&lt;BR /&gt;
I would use hotspots to make a three positions switch.&lt;BR /&gt;
Easy way to graphically change the types of window, in 3D or 2D.&lt;BR /&gt;

&lt;PRE&gt;	dim windowType[]

	dMin = -0.15    ! for example
	dMax =  0.15

	for k = 1 to nb
		dist&lt;K&gt; = min (max (dMin, dist&lt;K&gt;), dMax)   
	
		if dist&lt;K&gt; &amp;lt; dMin / 2 then
			dist&lt;K&gt; = dMin
			windowType&lt;K&gt; = 'A'
		else
			if dist&lt;K&gt; &amp;lt;  dMax / 2 then
				dist&lt;K&gt; =  0.00
				windowType&lt;K&gt; = 'F'
			else
				dist&lt;K&gt; =  dMax
				windowType&lt;K&gt; = 'L'
			endif
		endif
	next k

	parameters dist = dist&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:08:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151624#M24208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-25T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151625#M24209</link>
      <description>to choose a value for an array parameter, the pull-down menu would be a table, not a simple list... Nice, but not possible (yet)</description>
      <pubDate>Thu, 25 Jun 2009 13:23:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151625#M24209</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2009-06-25T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151626#M24210</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;I don't think it is possible.&lt;BR /&gt;
I would use hotspots to make a three positions switch.&lt;BR /&gt;
Easy way to graphically change the types of window, in 3D or 2D.
&lt;/BLOCKQUOTE&gt;

Thanks Oliver.&lt;BR /&gt;
This is exactly what I am doing.&lt;BR /&gt;
The thing is my window can have anything from 1 to 6 panels horizontally and 1 to 6 panels vertical.&lt;BR /&gt;
So anything from 1 to 36 panels and each can be set to awning, louvre or fixed individually.&lt;BR /&gt;
So I was hoping arrays could help.&lt;BR /&gt;
I am using arrays for the frame positioning but it seems it is not possible for the frame type.&lt;BR /&gt;
&lt;BR /&gt;
It can still be done - I just need to repeat the script 36 times!&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 26 Jun 2009 03:41:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151626#M24210</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-06-26T03:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151627#M24211</link>
      <description>&lt;BLOCKQUOTE&gt;rocorona wrote:&lt;BR /&gt;Nice, but not possible (yet)&lt;/BLOCKQUOTE&gt;

That's what I expected.&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 26 Jun 2009 03:42:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151627#M24211</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-06-26T03:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151628#M24212</link>
      <description>If I understand you right, you want to use the same 3 values for every parameter. This is possible only in the User Interface; say fx is an array parrameter:&lt;BR /&gt;
&lt;BR /&gt;
VALUES "fx" 	"Festverglast",&lt;BR /&gt;
				"Drehkipp links",&lt;BR /&gt;
				"Drehkipp rechts",&lt;BR /&gt;
				"Dreh links"&lt;BR /&gt;
&lt;BR /&gt;
Then you have to use the User Interface to have single Value lists. The normal parameter list cannot do this, as the other users wrote.&lt;BR /&gt;
Use something like this:&lt;BR /&gt;
&lt;BR /&gt;
led=24&lt;BR /&gt;
FOR k=1 TO 18&lt;BR /&gt;
UI_INFIELD{2} fx&lt;K&gt;, 185,dy-4,100,16&lt;BR /&gt;
dy=dy+led&lt;BR /&gt;
NEXT k&lt;/K&gt;</description>
      <pubDate>Sun, 28 Jun 2009 18:27:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151628#M24212</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2009-06-28T18:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151629#M24213</link>
      <description>&lt;BLOCKQUOTE&gt;Joachim wrote:&lt;BR /&gt;If I understand you right, you want to use the same 3 values for every parameter. This is possible only in the User Interface; say fx is an array parrameter:&lt;BR /&gt;
&lt;BR /&gt;
VALUES "fx" 	"Festverglast",&lt;BR /&gt;
				"Drehkipp links",&lt;BR /&gt;
				"Drehkipp rechts",&lt;BR /&gt;
				"Dreh links"&lt;BR /&gt;
&lt;BR /&gt;
Then you have to use the User Interface to have single Value lists. The normal parameter list cannot do this, as the other users wrote.&lt;BR /&gt;
Use something like this:&lt;BR /&gt;
&lt;BR /&gt;
led=24&lt;BR /&gt;
FOR k=1 TO 18&lt;BR /&gt;
UI_INFIELD{2} fx&lt;K&gt;, 185,dy-4,100,16&lt;BR /&gt;
dy=dy+led&lt;BR /&gt;
NEXT k&lt;/K&gt;&lt;/BLOCKQUOTE&gt;

Guten tag Joachim,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for this nice workaround! I completly missed this possibilty. &lt;BR /&gt;
You are right, UI allows to do this with just one parameter. &lt;BR /&gt;
&lt;BR /&gt;
In the attached example, I just added a User Interface.&lt;BR /&gt;
Mixed (or not) with "Hotspots Switch", it can be an interesting solution. &lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Olivier</description>
      <pubDate>Mon, 29 Jun 2009 18:19:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151629#M24213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-29T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151630#M24214</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Here's another, a floating tooltip with textual content.&lt;BR /&gt;

&lt;PRE&gt;!--values
values 'a' 0.5, 0.75, 1
if a&amp;lt;0.75 then parameters tip[1]= '[LEFT] middle right'
if a=0.75 then parameters tip[1]= 'left [MIDDLE] right'
if a&amp;gt;0.75 then parameters tip[1]= 'left middle [RIGHT]'
!--

!--2D
hotspot2 0, 0
line2 0, 0, a, 0
hotspot2  0, 0, uid+1, a, 1
hotspot2 -1, 0, uid+2, a, 3
hotspot2  a, 0, uid+3, a, 2, tip[1]
uid= uid+3
!--&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="http://www.machine.fi/temp/tooltip.png" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Mon, 29 Jun 2009 20:36:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151630#M24214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-29T20:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151631#M24215</link>
      <description>Thank you for the attachments Olivier and Juha.&lt;BR /&gt;
I think I have done something very similar to Olivier's example although not quite so eloquently.&lt;BR /&gt;
I will digest these scripts and see how I can improve.&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 30 Jun 2009 06:55:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151631#M24215</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-06-30T06:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151632#M24216</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
Here's another, a floating tooltip with textual content.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha&lt;/BLOCKQUOTE&gt;

Hi Juha,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the displayParam tip! I missed this one too.&lt;BR /&gt;
&lt;BR /&gt;
@ Barry:&lt;BR /&gt;
Just add this display Parameter, and hotspots will dispay a panel Type (A, F or  L) instead of a distance. More intuitive.&lt;BR /&gt;

&lt;PRE&gt;	hotspot2  0,  0        , uid, switch&lt;K&gt;, 1+128         : uid = uid+1    ! base
	hotspot2  0, -1        , uid, switch&lt;K&gt;, 3             : uid = uid+1    ! ref
	hotspot2  0,  switch&lt;K&gt;, uid, switch&lt;K&gt;, 2, panType&lt;K&gt; : uid = uid+1    ! moving&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2009 13:17:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151632#M24216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-30T13:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151633#M24217</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
Here's another, a floating tooltip with textual content.&lt;/BLOCKQUOTE&gt;

Great tip Juha!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
I'd just use a radius/angular hotspot instead of a linear one.</description>
      <pubDate>Tue, 30 Jun 2009 14:07:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151633#M24217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-30T14:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151634#M24218</link>
      <description>try the attached one also... it is just a tip to get a "simulated" UI.&lt;BR /&gt;
1.   Insert the object&lt;BR /&gt;
2.   Move the central hotspot to the right or to the left and the UI appears&lt;BR /&gt;
3.   use the hotspot on the buttons to make your choice&lt;BR /&gt;
4.   move again the central hotspot to the centre to hide the UI&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Friendly&lt;BR /&gt;
Fabrizio&lt;BR /&gt;
&lt;BR /&gt;
P.S. you can use a better image for simulating the buttons... I used this one (low quality) just because it comes from the object preview (in this way I avoided to include the image as external source).</description>
      <pubDate>Fri, 10 Jul 2009 10:43:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151634#M24218</guid>
      <dc:creator>Fabrizio Diodati</dc:creator>
      <dc:date>2009-07-10T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151635#M24219</link>
      <description>Thanks Fabrizio,&lt;BR /&gt;
That graphical hotspot selection is a great idea and may come in handy.&lt;BR /&gt;
Very much appreciated.&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 13 Jul 2009 08:34:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151635#M24219</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-07-13T08:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Value list for arrayed parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151636#M24220</link>
      <description>Hi folks,&lt;BR /&gt;
&lt;BR /&gt;
Barry, thanks for the imput of this thread. There is always something to learn.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Fabrizio, nice tip! Simplicity is the best.&lt;BR /&gt;
&lt;BR /&gt;
Attached a collection of various hotspot tips inspired from this thread,&lt;BR /&gt;
+ an old one from Oleg. Examples are easy to customize. Maybe this can help some people.&lt;BR /&gt;
&lt;BR /&gt;
Best regards to Joachim, Juha, Fabrizio, Oleg and Barry.&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 15 Jul 2009 19:15:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Value-list-for-arrayed-parameters/m-p/151636#M24220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-15T19:15:47Z</dc:date>
    </item>
  </channel>
</rss>

