List

Nodes for working with lists. Lists are collections of objects (numbers, lines, Revit elements, other lists) that have a simple or complex structure.

List > Generate

List.Combinations

Description

The purpose of this node is to create unique combinations of elements. The node accepts a list of elements as an input. And also a number specifying the length of the sublist of each individual combination. For each element of the list, a combination with all other elements is created. If you set the replace port value to true, then combinations with the original element will be created too.

The different order of elements in one combination does not make it unique. In the example above we don't see two combinations["A", "B"] and ["B", "A"] at the output. This node produces only one of them. If you need the order of elements to be taken into consideration, use List.Permutations node.

Inputs and Outputs

List of elements for creating combinations from them

Data Type and Structure

Direction

Default Value

var[]..[]

In

Practical Cases

For each facade you have to choose 3 not-repeatable colors. You need to understand how many unique color combinations can be made from the proposed list. Which element the color is applied to is not important.

Last updated