ParentPDElement
(read only)
This property sets the parent PD element of the active PDE element to be the active circuit element. Returns 0 if no more elements up-line.
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;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
% Handler for PDelements interface
DSSPDE = DSSObject.PDElements;
% Activates the first PDE on the list
i = DSSPDE.First;
% gets the name of the active PDE
myName = DSSPDE.Name;
% Activates the parent PDE of the active PDE as the active element
myIdx = DSSPDE.ParentPDElement;
if DSSPDE.ParentPDElement == 0,
disp(['No Parent PDE for ', myName]);
end;