(read/write)


This property sets/gets the full name of the first PDelement for the BranchRemove command (class.name -> e.g. Line.myLine).


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;

DSSLines = DSSCircuit.Lines;

% activates the first line on the list

i = DSSLines.First;

myLine = DSSLines.Name


% set the PDE name for the reduction

DSSReduceCkt.StartPDElement = myLine;

% breaks loops first

DSSReduceCkt.DoLoopBreak();

% merge parallel lines

DSSReduceCkt.DoParallelLines();

% reduce 

DSSReduceCkt.DoDefault();


% get the OpenDSS command

myStr = DSSReduceCkt.EditString;