Creating family types and setting values from CSV

I have hit a bit of a snag and can’t for the life of me understand why I am experiencing my issue.

I am using the Orchid Package and this is on Revit 2022 and Dynamo Revit 2.12.1.11123

The Node o|Parameter.SetValue reports the following Warning: FamilyParameter.SetValue operation failed. Number of items does not match the number of keys.

I have 11 Types created, 16 parameters to fill and 176 values to fill.
Family types are created correctly.
ParameterName is set to use Level 1, to itemize the parameters.
Value is set to use lever 2, to place each value to the parameters and family types.
Lacing is set to longest.

for the context of the Parameters.
T are text parameters
L are legnth parameters

Below is a snapshot of the script and CSV file for context.

What am I missing?

Any guidance would be appreciated.

When in doubt, make it all match. As helpful as list levels are, you can’t use them for every combination of input structures. Make the list of elements, parameter names, and parameter values match. Then you shouldn’t have to deal with list levels at all.

Side note: Under pretty much every standard use case, list levels and lacing won’t stack. Lacing is essentially a builtin selector for standard structure mappings. List levels do the same thing with more explicit control. I suggest always using list levels, but lacing won’t do anything when you have list levels assigned either way.

When in Doubt, Simplify

All I needed was the List.Transpose node to reorganize the data structure.
I also used @L2, without using the list levels, Dynamo sometimes behaves unexpectedly.

1 Like