(read only)


This property sets Parent PD element, if any, to be the active circuit element and returns index>0; Returns 0 if it fails or not applicable..


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 PDE on the list as the active element

i = DSSCircuit.FirstPDElement;

% Sets the next PDE on the list as the active element

i = DSSCircuit.NextPDElement;

% Activates the parentPDE

i = DSSCircuit.ParentPDElement;

if i ~= 0,

    myParent = DSSElement.Name;

end;