Linking pipe parameter with user-input values

Hello everyone! I’m trying to make a script that applies insulation on pipe fittings that are categorized by pipe radius. I’ve filtered the pipe fittings into two categories because I would like the fittings with two nominal radii to apply the pipe insulation thickness based on the larger nominal radius.

However, I don’t know how to associate the pipe radii with the specific user-desired insulation thickness.

A Dictionary is the way to map a diameter to an insulation thickness. I note you have 75 diameter pipes yet only have 100, 200 & 300 in your dialogue - you’ll have to work out an algorithm to pick the required key.
Unfortunately Dynamo dictionaries don’t accept integers as keys so a string will be required and some conversion
Example here with some selection logic

1 Like