This interface can be used to gain access to the features of the Line codes (LineCodes) used for defining circuit elements in the model in OpenDSS. Line codes can be used to define the features of multiple lines across the model without having to redefine them for each line when creating the model. 

Also, if the properties of a line code change, those changes will automatically be inherited by the lines pointing to the line code modified. This interface is embedded within the ActiveCircuit interface, requiring the definition of this interface before getting access the to LineCodes interface.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp("Unable to start openDSS");



DSSCircuit = DSSObject.ActiveCircuit;

DSSLineCodes = DSSCircuit.LineCodes;