Specific values depending on parameter

Hey. I have a question. What is the easiest way to make all possible modifications?

If I have certain length like 250 mm, i the possible variations of pipes and parts are for example from 0-5
If I have certain length like 500 mm, i the possible variations of pipes and parts are for example from 0-12
If I have certain length like 1000 mm, i the possible variations of pipes and parts are for example from 5-20
there are catalogue things that goes in standarts, and how can I automatize it? aaaax

It’s like IF funcion —> IF Lenght=250, x=[0 to 5], y=[0 to 5] ; IF Lenght=500, x=[0 to 12], y=[0 to 12] and etc.

There are plenty of ways doing that. Here is a simple example with Expression component…One of many ways as i said…can be scripted as well, with less components involved…
You have to elaborate further what is exactly what you want and attach working file to get better feedback on this forum…

EX_1.gh (143.4 KB)

OK I attached gh file and picture. I have 3 possible X. And a lot of different possibilieties if X is 250;500;1000. I just want to make it that way: I select 1000 and there is no possible selection to have Z=1 or Y=1. The sliders have to be connected to X value.

2 Likes

If i got you correctly, maybe this?

Great definition btw. Respect :+1:

If you are in position to extract 3 tables for each element width, like on picture, this might be a solution.

Excel files has to be loaded in definition. I have used TT Toolbox Read XL for extracting table data.

EX_1_RE.gh (268.1 KB)

Excel files used in definition:

XL.rar (18.5 KB)

2 Likes

That’s a beautiful job you have done! Thanks!

But I have one problem. When I switch between length [250;500;1000], i get an error that I have to check the path to excel file. Do you have the same problem?

Ohh that might be a problem because I use wps office…