(read only)


This property sets the first Power Conversion (PC) element to be the active element.


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;

DSSElement = DSSCircuit.ActiveCktElement;

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

i = DSSCircuit.FirstPCElement;

% Gets the name of the active element

myElement = DSSElement.Name;