DoBranchRemove
(method)
This method removes (disable) all branches down-line from the active PDelement. Circuit must have an Energymeter on this branch. If KeepLoad=Y (default) a new Load element is defined and kW, kvar set to present power flow solution for the first element eliminated. The EditString is applied to each new Load element defined.
Example
% Create DSS object
DSSObject = actxserver('OpenDSSEngine.DSS')
if ~DSSObject.Start(0),
disp('Unable to start openDSS');
return
end;
DSSText = DSSObject.Text;
DSSCircuit = DSSObject.ActiveCircuit;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSReduceCkt = DSSCircuit.ReduceCkt;
DSSPDE = DSSObject.PDElements;
% Activates the first PDE on the list
i = DSSPDE.First;
% eliminates everything down-line
DSSReduceCkt.DoBranchRemove();