Putting a range on set values
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-01 04:49 PM
2019-05-01
04:49 PM
I'd like to be able to put a range on a parameter that has set values.
My values are these:
values "upright_height" 0.71, 1, 1.22, 1.6, 1.98, 2.4But I want to be able to add a max range of something that might be less than 2.4 so ideally my values would remove the 2.4, how can I add this?
Thanks
ArchiCAD 23
Windows 10
Windows 10
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 03:06 AM
2019-05-02
03:06 AM
Not quite sure I follow what you want but you can add a RANGE option to your VALUE list.
See the example in the GDL manual.
Barry.
See the example in the GDL manual.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 11:07 AM
2019-05-02
11:07 AM
For example I might set ceiling height to 2.2m therefore having my upright height at 2.4 doesn't work so I'd like to remove that from my values list. So it was automatically only give me the options of 0.71, 1, 1.22, 1.6, 1.98 and remove the 2.4.
I hope this helps to explain what I'm trying to achieve a bit clearer.
Thanks
I hope this helps to explain what I'm trying to achieve a bit clearer.
Thanks
ArchiCAD 23
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 11:12 AM
2019-05-02
11:12 AM
Sounds like you need a few IF ... THEN statements to check for the range and then define values.
This would work if ceiling height is a parameter in your object.
This would work if ceiling height is a parameter in your object.
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl
ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5
www.leloup.nl
ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 11:50 AM
2019-05-02
11:50 AM
I knew it would be possible with IF's but I was curious as to if there was a simple way of doing it.
Thanks
Thanks
ArchiCAD 23
Windows 10
Windows 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 03:26 PM
2019-05-02
03:26 PM
You can use get() in Values* command (without RANGE)...
Piotr
Piotr
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-02 03:46 PM
2019-05-02
03:46 PM
I haven't ever used this and the reference guide doesn't really explain how to use it. Do you have any very basic examples of how I might use it?
Thanks very much
Thanks very much
ArchiCAD 23
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-04 03:49 PM
2019-05-04
03:49 PM
PUT 0.71, 1, 1.22, 1.6, 1.98
IF ch >= 2.2 THEN PUT 2.4
VALUES "upright_height" GET(NSP)
IF ch >= 2.2 THEN PUT 2.4
VALUES "upright_height" GET(NSP)
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de