I’ve been struggling with this question for a while. I’ve made an Excel document with different building types (A, B, C, etc) with their building number (D001, D012, A037), see the first picture below. Now, what i want is the following: I imported this information to Dynamo and it gives me the list that’s shown in the second picture. However, I would like to get a list like the one in my last picture. Dynamo should filter out all subtlists where list 0= A (building type) and provide me with a new list. in which the original second sublist (list 7.1, 8.1, etc) is given. So, something like: 0 list --> 0= A, 1= D001, D012, A037 until J177.
I hope someone can help me out, thanks in advance!
Unfortunately, I was too fast with my reply.
I’ve been testing some different building types and the code block seems to filter out all the previous letters in the building number as well.
In the picture is shown that when I use building type D, the building number B and C are filtered out of the list (A isn’t in this list, but I assume that would be filtered out as well) , while they do have the same building type.
I see, did not understand what your problem with the “if” statement was (guess the description and the use of a dataset of 300+ values for testing confused me )
Anyway my guess is that either your “B” items etc contain e.g. a trailing space or something like that… making the value “false” even though the letter is "B "…
Have a look at this, just another way to Rome:
Thanks for your help! The whole script is pretty big. I hope you can help me out! The groupe called Name (where this is all about) should replace the manual name parts in each “Type” Groupe in this script.
I’m currently using Revit 2018.1 and Dynamo 2.0.1, but I added a screenhot The script is about copying sheets from an assembly, with this name as prefix instead of the manual prefix which is in there at this moment.