I received an IFC from a local manufacturer. In this IFC there are 114 windows modeled. Each window is modeled as one Assembly.
When importing this IFC in Revit, the Assemblies explode and leaving the window behind in multiple pieces (pieces of Structural Framings). Each piece has his own IfcGUID. My IFC import options are fine, because other IFC projects do load whole Assemblies in Revit.
I managed to get all the Assembly marks in Excel. My plan is to assign all the marks in Dolumn B to the Structural Framing IfcGUID’s in column D with Element.SetParameterByName. So all Structural Framing parts will get a mark.
I have shortened my project to 2 windows and a smaller Excel list. Currently I am heading in to 2 problems. My first one - who’s giving me a headace - is at the part where I have to order the elements with IfcGUID parameters in my project in the same order as the Excel list. See ‘list 2’ in my dynamo script.
My second problem is at the part where I have to remove the first new mark of the mark list in order to match up to the quantity of elements. As you can see my idea is not working out that well (see ‘list 3’ in the script)…
Is there anybody who is willing to help me ? Thanks in advance!
Test sort by excel list.dyn (26.9 KB)
Revit file: https://www.dropbox.com/s/a2du707f0io1cyp/Test%20file.rvt?dl=0
Excel file: Test file.xlsx (9.6 KB)