answered Oct 4 '18
Change the branch id with API mbidbrn:
ierr = mbidbrn(frmbus, tobus, id, idnew)
For example:
psspy.mbidbrn(30715,30719,'1','*1') # switch psspy.mbidbrn(35441,35597,'1','@1') # breaker