(read only)

This method sets the next element of the active class to be the active element in the active circuit. Returns 0 if no more elements..


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Sets 'Load' as the active class

DSSCktElement = DSSCircuit.ActiveCktElement;


myLoadList = [];

% Sets the first load on the list as the active element

i = DSSCircuit.FirstElement;

% Creates an array with the names of all the elements of the active class

while i > 0,

    myLoadList = [myLoadList;{DSSCktElement.Name}];

    i = DSSCircuit.NextElement;