Command whit keyboard.

Discussion in 'AutoCAD' started by fazzini, Mar 3, 2004.

  1. fazzini

    fazzini Guest

    Whit AutoLisp I make the command whit DEFUN function,
    and this command can be call whit the keyboard.
    Can i call the VBA routine whit a keybord?
    THX to all.
     
    fazzini, Mar 3, 2004
    #1
  2. Hi,

    In practical terms - No.

    But the easy way is to define a lisp function to call the VBA command.

    In general terms

    (Defun C:CallMyVBAMacro ()
    (vl-vbarun "C:\\My Programs\\MyProgram.dvb!MyMacro")
    )

    You can then type CallMyVBAMacro<Enter> to run the VBA macro MyMacro.

    If you create a custom menu you can put the above code in the MNL file for
    the menu and it gets loaded and is available whenever you load the menu.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Mar 3, 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.