Hi Paulo, It works now. Thanks for your help! Thanks David ! The code- import win32com.client dssObj = win32com.client.Dispatch("OpenDSSEngine.DSS") dssText = dssObj.Text dssCircuit = dssObj.ActiveCircuit dssSolution = dssCircuit.Solution dssElem = dssCircuit.ActiveCktElement originalSteps = dssSolution.Number dssBus=dssCircuit.ActiveBus dssText.Command = 'compile "C:\\Users\\Niloy\\Dropbox\\NILOY\\Python\\13_bus_feeder\\IEEE13Nodeckt.dss"' # put a new external capacitor at bus 611 dssText.Command=...
Hi Davis, Thanks for your reply! If I remove the capacitor controls as for now and try to solve using 'dssSolution.Solve' while disabling the 'Solve' command in IEEE13Nodeckt.dss file, it gives an information error - (24702) OpenDSS The circuit must be solved before you can do this. Here is the code- import win32com.client dssObj = win32com.client.Dispatch("OpenDSSEngine.DSS") dssText = dssObj.Text dssCircuit = dssObj.ActiveCircuit dssSolution = dssCircuit.Solution dssElem = dssCircuit.ActiveCktElement...
Hi, I am using Python 3.8. I am trying to include one capacitor (at bus 611) in IEEE 13 bus feeder (externally) and run power flow through python. I have disabled the 'Solve' command in .dss file and trying to run power flow after including the capacitor. I am getting some errors: 1. It says " the circuit must be solved before you do this". 2. Even if I enable the 'Solve' command in .dss file, this error comes up :" Error 660 Reported from OpenDSS Intrinsic Function: Trying to Get Currents for Element:...