1
\$\begingroup\$

Altium contains Active Bar. It appears in the canvas on the top. It provides a short-cut way to access specific tools. We can add things into it and remove things from it. Items that we find in other menus e.g Tools menu, can be added into the active bar.

My question is, can one add something into the active bar that executes a script or sequence of actions instead?

\$\endgroup\$
3
  • \$\begingroup\$ Look I am trying to learn Altium so I can use it at job later. Please forgive me for asking questions on this place. My ancestors and all descendants till day of judgement say sorry to you. I use the Altium forum when I can using my work account but its not possible all the time. I know about the Altium forum. \$\endgroup\$
    – gyuunyuu
    Commented Aug 29, 2023 at 21:10
  • \$\begingroup\$ Here is a blog that may help: pcbway.com/project/shareproject/… You can also ask your question to the pcbway forum. There are many altium users. \$\endgroup\$
    – liaifat85
    Commented Aug 30, 2023 at 11:05
  • \$\begingroup\$ This link will take you, even without a valid license, to an excellent (and official) Altium forum: forum.live.altium.com (where all you need to do is register for an account). \$\endgroup\$ Commented Aug 30, 2023 at 17:33

1 Answer 1

3
\$\begingroup\$

To have a script run from a toolbar, you must first create a command from the script. There is good documentation on this. The following statement summarizes this process well:

Under Executing Scripts:

The ideal way to access a script's functionality however, is where it is integrated into Altium Designer's GUI as a menu or toolbar command. This is normally a two-step process; implementing a script as a Command (with optional shortcut), then assigning the Command to a Menu (static or pop-up) or a Toolbar.

Be sure to read Script as a Command and Create a Command for details on getting from script to command.

Further down the page, the section Assigning Menu Commands gives you the steps to add the command to a toolbar:

To assign a custom command to the PCB editor's main menu or Toolbar menu for example, open the Customizing PCB Editor dialog, locate the custom command and drag it to the desired menu location.

Once you've created a custom command, don't forget that you can assign a keyboard shortcut, which in my opinion would be a further improvement so that a button click is not necessary.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.