I’ve been working on a pretty large script that reads a “Line Number” off pipe objects that have been selected.
First the User enters a “Line Number” to their selection set using stock Revit tools;
Run the script, select components in Revit you want to process;
Read line number from object along with the Element ID and Object type, Dynamo writes these to an Excel table, then performs a VLOOKUP on another sheet where line data will be entered. The data that matches the “Line Number” then gets pushed back to all of the Revit objects in the selection set, to help populate our NDE requirements to the fabrication shop.
Currently, the place where I’m struggling is writing the line items back from EXCEL to Revit Objects (Along with how to walk thru an index with Dynamo, but that’s another subject.)
What I don’t understand is why it can’t find the parameters available to write on the parts. I assume my input Element.Set.Parameterbyname list isn’t matching, but I can’t figure that part out. My Revit Project has everything I’m writing as a parameter already on the parts, and a project parameter set for the link.
Also my 8 “Get Item at Index” to process the list seems rough, is there better methods for itemizing a list for processing the data?
Attached will be the script and the EXCEL file.
Line_List_JHK_MASTER.R1 LINEINFO