1

Change custom tool?

  • retag add tags

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.

Lam Nguyen's avatar
21
Lam Nguyen
asked 2013-09-14 05:06:30 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

4 Answers

1

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

QuinnP's avatar
71
QuinnP
answered 2023-01-25 20:46:41 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

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.

amaity's avatar
586
amaity
answered 2013-09-14 21:34:22 -0500, updated 2013-09-15 09:59:19 -0500
edit flag offensive 0 remove flag delete 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's avatar Lam 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's avatar amaity (2013-09-15 10:10:35 -0500) edit
add a comment see more comments
1

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'
jsexauer's avatar
586
jsexauer
answered 2013-09-16 15:09:47 -0500
edit flag offensive 0 remove flag delete link

Comments

1

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

Lam Nguyen's avatar Lam Nguyen (2013-09-17 04:46:59 -0500) edit
add a comment see more comments
0

Nice! Tks all.

Hai Tran's avatar
1
Hai Tran
answered 2013-09-26 03:37:44 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer