Need help with a list

Trying to get the first sub-item of each item in the list. so my new list will not have “Detail Symbol” in it.

Hi @sdonahay,
Welcome to the Dynamo community.
There are multiple ways to do that. See which one works best for you.

Choice #1 returns and error.

This is the error:

@sdonahay Not sure why it wouldn’t work.
@solamour @jacob.small Any clue as to why that warning is being generated?

@sdonahay try this:

some_list = IN[0]
idx = IN[1]
OUT = [item[idx] for item in some_list]
1 Like

@AmolShah - I was unable to reproduce this error unfortunately - @Michael_Kirschner2 do you think it’s got something to do with the Document.BackgroundOpen nodes?

@sdonahay, this may also be a good resolution to your graph problem :slight_smile:

Sdonahay_AllIndicesOf_RemoveItemAtIndex.dyn (8.6 KB)

1 Like

hmm, it’s a good idea to post the version of dynamo you are using - the only thing that comes to mind is a problem with list@level / keep list structure inputs not reflecting the UI around 2.3 timeframe…

what version of Dynamo is this?

Does it work if you place a new node or reopen the graph?

Dynamo Core 2.0.3.8810
Dynamo Revit 2.0.3.8811

I will (Later) try just a text list like everyone has been using in there replies and see if that pops the same error. I have production work to get done right now so it may be a day before I get this tested out.

Thank you to everyone who has responded. I’m sure it’s something simple and will reveal it self soon. I hope.

@sdonahay please try updating to dynamo 2.0.4 from the dynamobuilds site.