Add a permanent button

Discussion in 'AutoCAD' started by Caracol, Jul 20, 2004.

  1. Caracol

    Caracol Guest

    Hi!

    In Autocad 2004 with Mechanical
    How can I add a permanent button which calls a macro in VB?

    thanks!
     
    Caracol, Jul 20, 2004
    #1
  2. Caracol

    Caracol Guest

    Thanks LT!

    --
    Dott. Facundo Nunes

    IBISOFT srl
    Parma - Italia
    "LTravis" <lt> ha scritto nel messaggio Oops, I should add something. To ensure the vl- commands are available, change the macro text to the following:

    ^C^C(vl-load-com);(vl-vbaload "c:/mypath/myroutine.dvb");(vl-vbarun "mymacro");



    "LTravis" <lt> wrote in message First create a new button by typing "customize", then from the "commands" tab scroll down to "user defined" and drag "user defined button" into any existing toolbar. Then right click the new blank button, choose "properties" and enter the following into the macro area:

    ^C^C(vl-vbaload "c:/mypath/myroutine.dvb");(vl-vbarun "mymacro");

    Of course you would substitute the correct path into the load part and the correct macro name into the run part.

    Good Luck,
    LT
     
    Caracol, Jul 20, 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.