(read/write)


This property sets/gets the active branch to one containing this bus, return index or 0 if not found.


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';

DSSTopology = DSSCircuit.Topology;

% activates the first branch connected to the substation

DSSTopology.BusName = 'SourceBus';

% gets the name of the active branch

myNewBranch = DSSTopology.BranchName;