cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Set range for array

JGoode
Advocate

Hello,

 

Is it possible to set a range for individual array fields? On first glance, I wasn't able to even though I can set the range for the parameter as a whole. 

 

Many thanks

ArchiCAD 17, 19, 21 and 23
Windows 8
5 REPLIES 5

Lingwisyer
Champion

Just to clarify, you have an array like [ a,] and you want to set a range for just for a, but you have only managed to set a uniform range encompassing both and b. [ x1< a <x2 , y1< b <y2 ] vs [ x1< a <x2, x1< b <x2 

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

Yes, so I would like to be able to set a range, as in minimum and maximum, so for x[1][1] I might want a different maximum e.g x[1][1] range [0, 1] and x[1][2] range [0, 2]. I currently have it so the range is always the same e.g x range [0, 1]

ArchiCAD 17, 19, 21 and 23
Windows 8

runxel
Ace

That is not possibly. You can only set it for the whole array.

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Joachim Suehlo
Advisor

Manual says:

If used on an array parameter, the restriction will be applied to all items individually.

Joachim Suehlo . AC12-25 . MAC OSX 10.15 . WIN10

The only way is:

Make a dummy parameter which can have a range or list (and it can be switched on demand).

First switch the value basing on selected cell in Your array, then apply the correct value basing on a range. Will work in UI, will not on hotspots...

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!