First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

SLD development

asked May 25 '13

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..!!

Comments

1

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

JervisW gravatar imageJervisW (Jun 4 '13)

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

Amir gravatar imageAmir (Jun 15 '13)

1 answer

Sort by » oldest newest most voted
2

answered Dec 4 '13

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())
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: May 25 '13

Seen: 2,243 times

Last updated: Dec 04 '13