.PGP and VBA

Discussion in 'AutoCAD' started by Frank Jan Koole, Jan 19, 2004.

  1. Hi,

    I made a few buttons (with macro's) in acad for my users to make live
    easier, but the question from them is: is it possible to put it under a
    keyboard-combination?

    I tried this in my pgp file:
    FK, *-vbarun Frank <= this doesn't work

    Then I tried this:
    v, *-vbarun <= this works but then the macro name needs to be
    typed and that's not fast either.

    So my question is there away to make the "FK" run my macro at once?
    Frank
     
    Frank Jan Koole, Jan 19, 2004
    #1
  2. Create a lisp wrapper :

    (defun C:FK()
    (vl-vbarun ...)
    )


    and autoload it from within your mnl file [preferably] or the
    acad2000.lsp file.

    ___________________________
    Mike Tuersley
    AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Jan 19, 2004
    #2
  3. Frank Jan Koole

    KingCAD Guest

    Hi, not to familiar with "PGP" files but we use [(command "vbarun" "Drive:/Path/Name.dvb!Module.Routine") ] in our ".mns" file to create toolbar buttons and menu pull downs that run VBA routines. This code loads the VBA routine if it's not already, and then runs it.
    A more exact example of the Code would be [(command "vbarun" "H:/VBA Routines/Cylinders.dvb!StartUp.Cylinder") ] I hope this is of some help.

    Good Luck
    Dave. K
     
    KingCAD, Jan 19, 2004
    #3
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.