There might also be some in-place panels?
Got a ‘big picture view’ of where the errors are? More specifically, the first error.
Wondering if there is a grouped element or group type among the collection.
I haven’t been able to find anything unique about the walls that are being sent to the panel node. They are not pinned, there are no groups, they are not in a design option. I was looking through the element list in the Revit drop down and see what different ways I could query them.
Unfortunately, it will be a bit difficult to troubleshoot on our end here as we don’t have access to the model surfacing these issues.
in that list, are there any nulls I suppose?
I have seen users modify a panel’s shape and it throw errors.
That make sense and I understand.
I went ahead and ran the script with just the mullions and the view creator. So at least I have all the assemblies made with views and I just need to go through and as I rename them add in the panels and doors.
Thanks to everyone for helping.
This is a good quick check - put a quick List.Clean in there to remove anything which isn’t an element.
It may also help to do a partial processing (not ideal but you need to find the issue). Add something like this in before the code block:
listOfSelectedThings[n*10..n*10+10];
That would allow you to increment N with a number slider until you find a group of 10 which fail to process, and then you can find the error and review what makes that instance unique.
So with the suggestions from @jacob.small I went down that rabbit hole and found out that items 42 and 57 were the issues. I ran it again and now there is only one error and that at the python script.
Any last thoughts on the error @john_pierson ?
Which instance is throwing the error? Filtering ‘which’ of the elements to get one failing is a good process again here… unless it’s all of them, in which case…
.
Good point, I used your code block and got errors on 1-20, but when I ran it on the 30s I didn’t get an error and it made the correct number of assemblies, but the naming was still incorrect.

I think I’m going to run it with the millions only in the morning and move on.
I’ve spent enough time twiddling with it and I will get something out of it for this project, assemblies and views. I can save the script to use on other projects.

