How can I improve my script? Revit colaps, I want to compare Architecture/Static Model.
For any reason, my script crashes revit at all. Which ways i have to optimize my script?
Also, you could change / compact your script by combining everything in front of the big Code Block by having two groups running through them with all your items.
Also try removing your If-statement and replacing it by List.RemoveIfNot and then put in DesignScript.Geometry.Solid (or something like that)