cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Creating a toolbar button for a macro

AshleyHolmes
10-Marble

Creating a toolbar button for a macro

Hello adepters,

We have a few simple macros we run to insert blank sections into our documents and would like to create a custom toolbar button to run this macro. Does anyone know how I can go about adding to the current toolbars OR creating a custom toolbar of our macros?

We are running AE 5.4. I've done a lot of reading regarding xui, aom and acl, but not sure how it all fits together.

Thanks for your insight adepters!

Ashley
Ottawa, ON
Canadian Pharmacists Association
4 REPLIES 4

Hi Ashley,
Here is some code we are using in 5.3 m110 to add two buttons to existing
toolbars. (We haven't started testing thoroughly, but it appears to work in
6.0 m010, too.)

I have made only minor changes to obscure potentially (if you are an IP
attorney) non-disclosable information, so they should work "out of the box"
assuming you can provide graphics.

Save this in an xml file in your custom folder's ../dialogs directory. It
references two graphics (xui.bmp and exit.bmp) which are 16x16. Those, too,
must be stored in the ../dialogs directory. The command attribute must
contain the reference to the code you want to run. I am calling mine by
packagename::functionname. The x/y coordinates were chosen to place the
buttons at the end of existing toolbars. The toolbar "layout" was too
unpredictable when we tried to insert them at the front of a toolbar. I
exhausted my patience / time available trying to get the Exit button to
dynamically "align right" ... I'm not sure it is possible. Even this
layout, if an author smallifies the Editor window, can collapse creating a
one-icon-wide-toolbar-row containing the xui and/or exit icons.

-------------- xuitoolbar.xml

ah, one last note: functionname is a function in an ACL stored in
../scripts. The function is defined within the package packagename.
something like:

-----------function.acl------------
package packagename
function functionname() {

# your code goes here

} # end functionname

We are attempting to help our IT support people in their efforts to create a script that will install Arbortext 6.0 M040 and NOT Creo. We are looking for a Windows command line argument, such as "-[xxx]", for switching off Creo installation. The install.pdf file that comes with the M040 download only talks about how to change the msi so that Creo is not installed.
Does anyone know what the Windows command line argument is or if there even is one?
I will probably call PTC help on this, but I thought I would ask here also.

Thanks to anyone who knows (and lets me know also).

Announcements

Top Tags