Nested lists

Hi,
I’m trying to make this script work for nested lists:
The basic script:

  1. List of all used pipes in the project
  2. Read from excel-file: list of all available pipes and their corresponding keynote
  3. Per pipe used in the project: search in the available pipes list (read from excel) the index of the diameter so we can obtain its corresponding keynote…

The diameters and keynotes, read from excel, are dependent on the pipe material, which leads to nested lists…

  1. List 0 = List of all used pipes of material A in the project
    List 1 = List of all used pipes of material B in the project
  2. Read from excel-file:
    List 0 = list of all available pipes of material A
    List 1 = list of all available pipes of material B

    Now I’m trying to define for each element of list 0 (pipes in the project - material A) its corresponding index in list 0 (read from excel - material A), for each element of list 1 (pipes in the project – material B) its corresponding index in list 1 (read from excel – material B),…

    Appreciating any help!

Hi, quick answer (as far as I understand): the Dictionary.ByKeysValues from Springs can probably help, see here for instance: Place detail family as symbol for fire protection values of doors

@Bart_Vande_Kerckhove See if this works for you …

nestedMatch.dyn (9.0 KB)

2 Likes

@Vikram_Subbaiah

Hi Vikram,

works perfectly! Thanks a lot!

1 Like