Switch Systems of Electrical Circuits

Is it possible to get the switch systems in every circuit in the model with dynamo? Currently I can get all the switch systems in the model and all the electrical circuits in the model, but I don’t know which switch system is under what circuit. There is no circuit parameter that outputs the number of switch systems it has.

Thanks

This is what I have so far:

Switch systems and Power systems are separate. You could get the elements from the power system and then check the Switch ID for each element or you could get the elements from both systems and compare. I think the former would be easier.

The issue is that I am trying to create a script that assigns Switch IDs to all the electrical groups and switches in each circuit. So initially, the Switch ID parameter would be blank.

So you’re actually trying to create switch systems with your existing circuits?

I have already created the switch systems in Revit. I want to assign a number to its Switch ID and for that I need to know how many switch systems there are in each circuit because I want the number to start from 1.

Gotcha.

I’m guessing you’ll have to use python if you don’t already have Switch ID assigned. It might actually be easier to assign values to the Switch IDs first so that you can sort and group them. Then you can rename them in the correct order.

MEPover has nodes that deal with electrical systems that will likely help.

I couldn’t find anything related to circuits in the MEPover package.What would I assign the Switch IDs as if I only know how many switch systems there are in the model.

It doesn’t really matter what you name them. I would start with something as simple as 1 through n.
image

My goal is to create a script that finds all the circuits in the model, and then find all the switch systems in each circuit. These switch systems don’t have any Switch IDs so I want to group the switch systems that are in the same circuit and set their Switch IDs from 1 to n (# of switch systems in that circuit).

The issue I am running into is organizing and grouping the switch system by circuit. I don’t know how the MEPover electrical nodes will help with that.

How would I be able to correctly sort and group the switch systems by Switch ID when they are numbered 1 to n? Even if Dynamo lists the switch systems in order by circuit, how will I know where one circuit ends and another starts?

There is no correlation between circuit and switch system. The only way to tie the two together is the individual elements within those systems. The Get Panels and Elements node from MEPover will get you the elements in each system. You would then have to compare the elements in Switch System 1 to the elements in all your circuits. If they match, you know that Switch System 1 is on that circuit.

Ok I’ll try that, thank you.