I am working on a development project that helps to coordinate our Electrical and Mechanical departments at our company. For this project I use a geometry-less family that is called Electrical Equipment Connection. This family gets hosted to a piece of mechanical equipment. The Electrical Equipment Connection is used (with dynamo’s help) to extract data from the mechanical equipment for scheduling as well as a visual reference and tagging on Electrical Sheets.
The Electrical Equipment Connection has 7 different Family Types. The types are Supply Fan, Return Fan, Exhaust Fan, Cooling Tower Fan, Emergency Heating, Boiler Control Power, and Single Point Connection. So, if a piece of mechanical equipment has a supply, return, and exhaust fan, then three Electrical Equipment Connections are placed (one of each respective type). All Electrical Equipment Types have the same parameter fields, listed below.
Electrical Equipment Connection parameters:
Voltage
Phase
HP
Watts
FLA
Minimum Circuit Amperage
Maximum Overcurrent Protection
Here’s the problem I am currently troubleshooting:
The mechanical equipment may be an air handler unit with supply, return, and exhaust fan horsepowers’. For the Supply Fan, I need only the air handler’s “Supply Fan Motor Horsepower [HP]” parameter’s value to be loaded into the Electrical Equipment Connection family with type: Supply Fan “HP” parameter field. This is one of many similar scenarios.
Currently I am using some lists and list.combine to create a list of the connector, host, and all parameters that I need to extract. It’s a nice little list! Now…I am not sure how to write a code (syntax) that checks the list for the family type, extracts the necessary parameters, and loads them into the respective connection family.
I’ve attached the actual dynamo file, an image of the file, and an image of a brainstorming sketch of what i would like to happen. Hope this makes some sense. Any help would be rad!
ElecMech-DataCollection.dyn (16.9 KB)