open-scd icon indicating copy to clipboard operation
open-scd copied to clipboard

Include single line diagram on duplicate/"clone" in the substation element

Open JakobVogelsang opened this issue 3 years ago • 2 comments

As a user of OpenSCD I expect that the clone function als clones Terminal and ConnectivityNode with copying a Bay, VoltageLevel and/or Substation.

Requirements:

  • on clone of Bay, VoltageLevel or Substation clone all ConnectivityNode and Terminal
  • adapt the pathName attribute of the cloned ConnectivityNode. Let's assume the copied entity is Bay B and the nes name is Bay B1. Then the pathName needs to be changed from AA1/J1/Bay B/L1 to AA1/J1/Bay B1/L1.
  • adapt the connectivityNode of the Terminal in the same way as the pathName of ConnectivityNode. In addition to that adapt either bayName, voltageLevelName or substationName depending on the cloned entity. Say again the copied entity is Bay and the name changes from Bay B to Bay B1 then the attribute bayName must be changed from Bay B to Bay B1
  • do not clone Terminal that are pointing to a ConnectivityNode outside the to be copied entity with one exception: cNode=grounded

Example:

<Bay xmlns="http://www.iec.ch/61850/2003/SCL" xmlns:sxy="http://www.iec.ch/61850/2003/SCLcoordinates" sxy:x="6" sxy:y="6" name="Bay B" desc="Feld B">
    <ConductingEquipment type="AAA" sxy:x="1" sxy:y="1" name="QB1">
       <Terminal name="T1" connectivityNode="AA1/J1/BusBar B/L1" substationName="AA1" voltageLevelName="J1" bayName="BusBar B" cNodeName="L1" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
       <Terminal name="T2" connectivityNode="AA1/J1/Bay B/L1" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L1" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="2"/>
   </ConductingEquipment>
   <ConductingEquipment type="DIS" sxy:x="3" sxy:y="1" name="QB2">
       <Terminal name="T1" connectivityNode="AA1/J1/BusBar A/L1" substationName="AA1" voltageLevelName="J1" bayName="BusBar A" cNodeName="L1" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
       <Terminal name="T2" connectivityNode="AA1/J1/Bay B/L1" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L1" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="2"/>
    </ConductingEquipment>
    <ConductingEquipment type="CBR" sxy:x="2" sxy:y="3" name="QA1">
        <Terminal name="T1" connectivityNode="AA1/J1/Bay B/L1" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L1" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
        <Terminal name="T2" connectivityNode="AA1/J1/Bay B/L2" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L2" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="2"/>
    </ConductingEquipment>
    <ConductingEquipment type="CTR" sxy:x="2" sxy:y="5" name="T1">
         <Terminal name="T1" connectivityNode="AA1/J1/Bay B/L2" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L2" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
          <Terminal name="T2" connectivityNode="AA1/J1/Bay B/L3" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L3" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="2"/>
     </ConductingEquipment>
     <ConductingEquipment type="VTR" sxy:x="3" sxy:y="7" name="T5">
          <Terminal name="T1" connectivityNode="AA1/J1/Bay B/L3" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L3" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
      </ConductingEquipment>
      <ConductingEquipment type="DIS" sxy:x="2" sxy:y="7" name="QB9">
          <Terminal name="T1" connectivityNode="AA1/J1/Bay B/L3" substationName="AA1" voltageLevelName="J1" bayName="Bay B" cNodeName="L3" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" txy:actTerm="1"/>
      </ConductingEquipment>
      <ConnectivityNode pathName="AA1/J1/Bay B/L1" name="L1"/>
      <ConnectivityNode pathName="AA1/J1/Bay B/L2" name="L2"/>
      <ConnectivityNode pathName="AA1/J1/Bay B/L3" name="L3"/>
</Bay>

JakobVogelsang avatar Oct 28 '22 20:10 JakobVogelsang

@Sander3003 I would get rid of the plugin all together. WDYT?

JakobVogelsang avatar Jun 25 '25 09:06 JakobVogelsang

Are you refering to the Substation editor?

Image

Do you want to replace it with the one from openenergytools?

Sander3003 avatar Jun 26 '25 14:06 Sander3003