Ask Your Question
1

Change custom tool?

asked Sep 14 '13

Lam Nguyen gravatar image

I use PSS/E 30.2, Menu Tools/Customize/Commands have 30 Custom Tool. How can I programme them or how can I create a command button in Menubar.

4 answers

Sort by » oldest newest most voted
1

answered Jan 26 '3

QuinnP gravatar image

For v34 the location of the menu option has moved around, it can be found under Windows -> Customize Toolbar Buttons

link
1

answered Sep 15 '13

amaity gravatar image

updated Sep 15 '13

You can associate a button with a batch command, python script or IPLAN script, etc by going to Tools > Custom Toolbar Buttons ....

In the pop up menu you can choose any of the numbered tool buttons, give the appropriate file type and the path of the file type. You may also associate with the button a display text. Click CLOSE and you are done. You will find your numbered tool button in the toolbar is now enabled.

Hope that helps.

link

Comments

Thank @amaity! But I can't "give the appropriate file type and the path of the file type". Tool 1 is open .sav file and .sld file, Tool 2 is solve and report, Tool 3 --> Tool 30 is custom but I don't know how to change them.

Lam Nguyen gravatar imageLam Nguyen (Sep 15 '13)

Unfortunately Lam, I don't have a copy of PSSE 30 right now hence can't check it out.

amaity gravatar imageamaity (Sep 15 '13)
1

answered Sep 16 '13

jsexauer gravatar image

Unfortunately, the answer @amaity gives only works in version 32 so far as I know.

To create custom toolbar buttons in version 30, you have to edit an ini file located at C:\WINDOWS\psse30.ini. Per the documentation in section 2.17.2 of the user's manual (page 2-92), commands look like this:

[Custom Definitions]
CUSTOM_BUTTON_1 = PYTHON,'C:\Program Files\PTI\PSSE30\EXAMPLE\OpenCase.py','(tooltip text) Open
savnw network and diagram '
CUSTOM_BUTTON_2 = RESPONSE,'C:\Program
Files\PTI\PSSE30\EXAMPLE\RunSolutAndReport.idv','Run solution and report'
link

Comments

1

Great, that's just as I expected! Many thanks @jsexauer!

Lam Nguyen gravatar imageLam Nguyen (Sep 17 '13)
0

answered Sep 26 '13

Nice! Tks all.

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: Sep 14 '13

Seen: 2,699 times

Last updated: Jan 25 '23