SetActiveClass
(write only)
This method sets the active class by name. Use FirstElement, NextElement to iterate through the class. Returns -1 if fails.
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;
% Sets class 'Load' as the active class
i = DSSCircuit.SetActiveClass('Load');
% verify if the class exists
if i < 0,
disp('The class does not exist');
return
end;