FirstElement
(read only)
This method sets the first element of active class to be the Active element in the active circuit. Returns 0 if none.
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;
% Sets 'Load' as the active class
DSSCircuit.SetActiveClass('Load');
% Sets the first load on the list as the active element
i = DSSCircuit.FirstElement;