Ask Your Question
1

SLD development

asked 2013-05-25 00:30:46 -0500

Amir gravatar image

I am working on Single line diagram(SLD) development using python.And i need to know know the locations of buses. ANYONE can tell me the Command to extract "bus laocation" from the .sav file. REGARDS..!!

edit retag flag offensive close merge delete

Comments

1

Do you need to know the x and y location inside the sld file?

JervisW gravatar imageJervisW ( 2013-06-04 00:50:02 -0500 )edit

Yes Exactly..Can you suggest me the method for this?

Amir gravatar imageAmir ( 2013-06-15 10:58:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-12-04 06:14:11 -0500

liamv gravatar image

You need to invesigate the sliderPy module which is bundled with PSS/E.

import psspy
import sliderPy

doc = sliderPy.GetActiveDocument()
diag = doc.GetDiagram()

for c in diag.GetComponents():
    pos = c.GetPosition()
    compType = c.GetComponentType()

    if compType == sliderPy.ComponentType.Symbol:

        sym = c.SldSymbol()
        symType = sym.GetSymbolType()

        print '\nID:{0}: map:\'{4}\' type{1} X:{2} Y{3}'.format(c.GetID(), symType, pos.GetX(), pos.GetY(), c.GetMapString())
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2013-05-25 00:30:46 -0500

Seen: 2,217 times

Last updated: Dec 04 '13