I’m trying to put some information in a wall from a database I have in an excel sheet.
The walls selected (Select Model Elements) have the same pier number (tag) to identify, this information I can get easly (Element.GetParamaterValueByName). Also I get the “Top Constraint” value with the same node to identify the element according to story level.
I want to “search” in my Excel Sheet by Pier Number and get the info from Number of Bars and Bar Diameter related to each story.
Here is an image to illustrate what I’m looking for:
The package recommended is a good tool, but for my issue I only need to make 2 filters, I think I managed to do it by this Filter.ByBooleanMask node and the do the filter by stories:
I did not replicate this situation but to me, a Dictionary.ByKeysValues node (spring nodes) makes sense here: Walls have a tag (=keys) to identify elements in Excel sheet (=values), and you need to search by ‘Pier Number’ (=search keys). See in the thread you mentioned:
You would possibly be better off using a true database rather than Excel.
By doing this, a simple SQL query, used in conjunction with GetParameter & SetParameter would do what you want
SELECT [bars] from [table] where [pier]=pier AND [level]=level