Lines/API: active element inconsistency
PMeira opened this issue · 1 comments
The interface for the other individual components use their respective lists to control the active element of that type.
The Lines interface is inconsistent with that, using the active circuit element instead:
dss_capi/src/v7/CAPI_Lines.pas
Lines 106 to 117 in ac460b0
For consistency, it would be ideal to change this behavior to match the other components. For example, reactors:
dss_capi/src/v7/CAPI_Reactors.pas
Lines 89 to 97 in ac460b0
With the refactoring done in ac460b0, this only affects the _activeObj
function. It would be reasonable to use the dedicated active line element by default, and use the proposed compatibility flag (#61) to toggle the original behavior.
I'll change the behavior and add the compatibility flag to restore the inconsistent version for the next version.