This property sets/gets the name of bus for terminal 2 for the active line.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Compile a model        

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

DSSLines = DSSCircuit.Lines;

% activates the first line on the list


% Gets the name of bus 1 for the active line

myBus1 = DSSLines.Bus1;

% Gets the name of bus 2 for the active line

myBus2 = DSSLines.Bus2;