I need to identify the phasing of a line or bus in VBA. I am searching for a particular bus at some index point by DSSCircuit.AllBusNames(i), but this returns, for example "ExampleBus". I want to identify the phasing as well (e.g. "ExampleBus.1, ExampleBus.2.3, etc). I cannot search by DSSCircuit.AllNodeNames(i), as this will not tell me whether there are other nodes on that same bus Is there a way to do this?
I have created a loop that loops through every BusName in my circuit, and assigns this BusName to the Bus2 field of a line. This works, but I would like now to only every assign a BusName to my line's Bus 2 if the BusName refers to a three phase bus... I would like to skip over any single or V phase. Any ideas how to complete this? Below is my code to successfully achieve the goal of assigning each BusName to Lines.bus2 (currently cycles only through the first 5 buses). Additional code is below to...
Never mind, I found my error. This site is a great resource and I appreciate your help... I'll try to limit my pestering if at all possible ;)
Is there a register or something for generator kW that can be cleared? I have created a loop that increments a variable (GenSize) from 1 to 5. I am multiplying this variable by a pre-defined initial kW size (300 kW) and performing 5 load flow solutions... effectively performing a load flow with a generator at 300kW, 600kW, 900kW, 1200kW, and 1500kW. However the result is a generator increment of 1000kW, 300kW, 600kW, 900kW and 1200kW. Where would the initial 1000kW number come from? Nowhere in my...
Thank you Roger, that helps.
How would I change the property of a single line? If I were to use the following text DSSCircuit.Lines.Bus1 = DSSCircuit.AllBusNames(3) That would change every single line's bus 1 to the same name as the third of the entire series. Is there a way to point to only one particular line to change? I am attempting to be able to place generation through a dummy line at every location on the system, one step at a time (the number 3 will be replaced by an incrementing variable k).
So if I have a file Load.dss that contains all of the load elements, can I assign a loadshape object in some way to the file, so that the load objects within the file take on that property? Or do I need to edit that Load.dss file directly?
I see now how to correct the meter... the action "take" must be removed to allow for each time snapshot to be captured. I am now returning results for each of 24 hours, but the load curve is not applied