FirstPDElement
(read only)
This property sets the first Power Delivery (PD) 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.FirstPDElement;
% Gets the name of the active PDElement
myElement = DSSElement.Name;