|  1 |    initial version    |    |  
I’m trying to create a schematic using the Python API and the sliderPy module to draw some *.drw files in version 35. I want the drawn elements to be linked to the electrical components, which I’ve managed to achieve using the SetMapString method.
To make the schematic clearer, I need to add knee points to the branch symbols. However, there doesn’t seem to be a CreateKneePoint method for branch symbols. I’ve been able to add them using links, but in that case the links aren’t associated with the electrical elements. How can I add knee points while keeping the connection to the electrical elements? Now the branch symbols are straight lines from node to node.
    |  2 |    No.2 Revision    |  
I’m trying to create a schematic using the Python API and the sliderPy module to draw some *.drw files in version 35. I want the drawn elements to be linked to the electrical components, which I’ve managed to achieve using the SetMapString method.
To make the schematic clearer, I need to add knee points to the branch symbols. However, there doesn’t seem to be a CreateKneePoint method for branch symbols. I’ve been able to add them using links, but in that case the links aren’t associated with the electrical elements. How can I add knee points while keeping the connection to the electrical elements? Now the branch symbols are straight lines from node to node.
This is how I use to draw the branch objects
doc = sliderPy.GetActiveDocument()
diagram = doc.GetDiagram()
branch = diagram.CreateBranchSymbol(sliderPy.PsseSymbolDefID.Branch, port1, port2)
branch.SetMapString(f"LI {bus_id_1:6d} {bus_id_2:6d} {line_id} ")
     |  3 |    No.3 Revision    |  
I’m trying to create a schematic using the Python API and the sliderPy module to draw some *.drw files in version 35. I want the drawn elements to be linked to the electrical components, which I’ve managed to achieve using the SetMapString method.
To make the schematic clearer, I need to add knee points to the branch symbols. However, there doesn’t seem to be a CreateKneePoint method for branch symbols. I’ve been able to add them using links, but in that case the links aren’t associated with the electrical elements. How can I add knee points while keeping the connection to the electrical elements? Now the branch symbols are straight lines from node to node.
This is how I use to draw the branch objectsobjects. I retrieve the ports using the GetFirstUnlinkedPort method.
doc = sliderPy.GetActiveDocument()
diagram = doc.GetDiagram()
branch = diagram.CreateBranchSymbol(sliderPy.PsseSymbolDefID.Branch, port1, port2)
branch.SetMapString(f"LI {bus_id_1:6d} {bus_id_2:6d} {line_id} ")
 
 
                
                whit loves you.      Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.