How can l manipulate a list of items, where l only want to isolate things with 2 items per index and remove the rest.

How can l manipulate a list of items, where l only want to isolate things with 2 items per index and remove the rest.

Hi @Gcf_Design,
There are probably many ways.
You can count items in sublists and use an If Statement
x==2?
true:
x!=2?
false:
x;
I’ll look at this now. Many thanks.
I do not have that ‘Count’, having to use Dynamo 0.92
Annoyingly l am having to use Revit 2016 for a particular project.
I don’t know Dynamo 0.9, I know only dynamo 1.3 and dynamo 2.0.
There is probably a List.Count node in dynamo 0.9 and use List map for level.
You can use dynamo 1.3.2 with Revit 2016.
I am looking at List.Sublist.length
Use list.count in your codeblock instead. Should work. If not post the error.
Now l got that far, but no require to make curves from pairs of points.
I have the trimmed curves now modelled within Revit, however, the non-trimmed curves are now omitted! uff
Now been omitted - how frustrating
95 roofs to go
Simply x==2 should do the trick ![]()