Ask Your Question
1

Change custom tool?

asked 2013-09-14 05:06:30 -0500

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.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2023-01-25 20:46:41 -0500

QuinnP gravatar image

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

edit flag offensive delete link more
1

answered 2013-09-14 21:34:22 -0500

amaity gravatar image

updated 2013-09-15 09:59:19 -0500

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.

edit flag offensive delete link more

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 ( 2013-09-15 03:22:06 -0500 )edit

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

amaity gravatar imageamaity ( 2013-09-15 10:10:35 -0500 )edit
1

answered 2013-09-16 15:09:47 -0500

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'
edit flag offensive delete link more

Comments

1

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

Lam Nguyen gravatar imageLam Nguyen ( 2013-09-17 04:46:59 -0500 )edit
0

answered 2013-09-26 03:37:44 -0500

Nice! Tks all.

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-09-14 05:06:30 -0500

Seen: 2,637 times

Last updated: Jan 25 '23