2009-06-25 05:20 AM - last edited on 2023-05-24 11:57 AM by Rubia Torres
2009-06-25 06:18 AM
2009-06-25 06:23 AM
sdb wrote:I want to give the user a list of values to choose from.
Hi
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.
2009-06-25 01:08 PM
Barry wrote:I don't think it is possible.
But is it possible to set a value list for an arrayed parameter?
Something like ...
VALUES "param_name [1][1]" "value_1', "value_2", ......
dim windowType[] dMin = -0.15 ! for example dMax = 0.15 for k = 1 to nb dist= min (max (dMin, dist ), dMax) if dist < dMin / 2 then dist = dMin windowType = 'A' else if dist < dMax / 2 then dist = 0.00 windowType = 'F' else dist = dMax windowType = 'L' endif endif next k parameters dist = dist
2009-06-25 03:23 PM
2009-06-26 05:41 AM
Olivier wrote:Thanks Oliver.
I don't think it is possible.
I would use hotspots to make a three positions switch.
Easy way to graphically change the types of window, in 3D or 2D.
2009-06-26 05:42 AM
rocorona wrote:That's what I expected.
Nice, but not possible (yet)
2009-06-28 08:27 PM
2009-06-29 08:19 PM
Joachim wrote:Guten tag Joachim,
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:
VALUES "fx" "Festverglast",
"Drehkipp links",
"Drehkipp rechts",
"Dreh links"
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.
Use something like this:
led=24
FOR k=1 TO 18
UI_INFIELD{2} fx, 185,dy-4,100,16
dy=dy+led
NEXT k
2009-06-29 10:36 PM
!--values values 'a' 0.5, 0.75, 1 if a<0.75 then parameters tip[1]= '[LEFT] middle right' if a=0.75 then parameters tip[1]= 'left [MIDDLE] right' if a>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 !--