Is it possible for a macro to setup a button on a toolbar?

Discussion in 'SolidWorks' started by SW Monkey, Jun 24, 2004.

  1. SW Monkey

    SW Monkey Guest

    Is it possible to write a macro that will create a button on an
    existing toolbar, attach an icon to the button, then assign a macro to
    that button? Im trying to find an easy way to setup multiple users
    with the same macro toolbar. This would allow me to get them to run
    (1) macro to update their toolbar each time I make a new macro.

    If this isnt possible, does anyone have any suggestions/solutions?
     
    SW Monkey, Jun 24, 2004
    #1
  2. SW Monkey

    Brian Vogel Guest

    As far as I know, you can only create menu and toolbar items from an addin.
    You might be able to create a stub addin that stores a list of macros and
    titles and then adds each of them to a menu or tool bar. Use one callback
    for all menu items that calls each item's macro with SldWorks::RunMacro.


    (SW Monkey) wrote in
     
    Brian Vogel, Jun 24, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.