AutoLISP,VBA or Script?

Discussion in 'AutoCAD' started by Andrea Kürzl, Jun 26, 2003.

  1. I would like to create a new shortcut.

    When I press 11 Return, Acad should make -view save 1
    and when I press 1 return, Acad should make -view restore 1

    The same with 22, 33, 44, ... 99

    I cant define this as a shortcut, since it is more than calling just a
    command. A little bit more. Now I have to decide, which way to go. My last
    experience was ten years ago in AutoLisp. Now there are more options. I can
    see Scripts and VBA. What are the advantages of these for my specific
    problem? What is the fastest way to make my computer perform this routine as
    I decribed above?

    Thanks, Andrea.
     
    Andrea Kürzl, Jun 26, 2003
    #1
  2. Andrea Kürzl

    bestafor Guest

    HiHo;
    We used to call those "One Finger Commands".
    Try this
    (defun c:11 () (command "view" "r" 11 ""))
    (defun c:22 () (command "view" "r" 22 ""))
    Blonds do have more Fun..lol
    ..
     
    bestafor, Jun 26, 2003
    #2
  3. We used to call those "One Finger Commands".
    Looks great. Where do i write this to?
     
    Andrea Kürzl, Jun 26, 2003
    #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.