(read only)


This property returns true if the active element has a CapControl or RegControl attached.


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;

DSSCaps = DSSCircuit.Capacitors;

% Compile a model        

DSSText.Command = 'Compile C:\myPath\myModel.dss';

DSSActiveElement = DSSCircuit.ActiveCktElement;

% Sets the first line of the list as the active element

if DSSCaps.First > 0,

    % Check if there is a VoltControl tied to it

    if DSSActiveElement.HasVoltControl,

        disp('It has VoltControl!');

    else

        disp('No VoltControl linked to this element');

    end;

else 

    disp('It seems that you have no capacitors!');

end;