i want them to exclude from my collected rooms
how
the issue is i have 810 values but 820 rooms when i set the parameter i mess up the whole
PyImportExcelBasedOnRoomNumber_V04.dyn (75.4 KB)
how
the issue is i have 810 values but 820 rooms when i set the parameter i mess up the whole
PyImportExcelBasedOnRoomNumber_V04.dyn (75.4 KB)
⌠i solved it with deleting the rooms in the excelâŚ
is there a better way
Issue is that the excel roombook ist 2 years old and these 10 room changed or got deletedâŚ
how to match xls with Revit ?
This is just another form of the common âmatch excel with Revit dataâ problem. A dictionary is the easiest way to handle all scenarios as it handles the matching as well as any âmismatchâ between the datasets.
Unless you do include the UniqueId of the Element in the Excel file So my dictionaries go by UniqueId and something else Then use GroupBy"Something" . Works smooth in every Revit version
SelectByUniqueID and do what you would do in the Revit UI, only faster.
Unplaced Rooms would be my first group to exclude in this example
Maybe I misunderstand the issue⌠but wouldnât a simple loop in Python work?
If this code is in my bad list then ignore the roomâŚ
Otherwise⌠collect the room in my output list.
Exactly that but with the standard nodes, no need for Python
I rule - ![]()

He rules
![]()
Iâm not a programmer, donât need it, be creative
Thatâs like saying you donât need Dynamo because you use Revit!
Looping in Dynamo is painfulâŚ
Think maybe we have gone a little off topic here though.
Its off topic, sure
It is wise to stop
I donât need looping btw Its just another way to build a dictionary
Work? Yes. Efficient? Not at all.
Say I told you to find the definition of Zyzzyva.
Using a loop, the statement is basically this:
ZyzzyvaIf you thought to include a statement at the end of the loop the average is 250,000 tests per word.
With a dictionary you just âgo to that wordâ, seeing as Zy is going to be late in the sorted set of entries it should be quite quick to find.
That said, if it works they go for it. ![]()
I think your roomnumber list from Revit can easily be compared to the excel list. As long as the roomnumbers are exactly the same, and only some rooms are missing in the excel OR in Revit it doesnât matter.
Or instead of List.GetItemAtIndex you use List.RemoveItemAtIndex
You just have to make sure that the Inputs from Room numbers can be an exact match
yes, i think when i not âcontiuneâ i have some kind of missmatch, so i cleaned the excel and now the right line in excel finds the right line in Revit⌠i wan`t to investigate this topic more, have no time.
i had also duplicated roomnumbers, and cleaned that tooâŚ