help scripting toolbars + keyboard

Discussion in 'AutoCAD' started by Dave, Nov 5, 2004.

  1. Dave

    Dave Guest

    I have done a bit of toolbar customisation and find the use of colons and
    spaces to indicate 'return' a bit tedious and even hard to see (eg is that a
    space or no space?). By comparison, something like (command "extrude" pause
    "" "333" "") is easier to read and debug. So...
    1 - Where can I find a good tutorial for customising keyboard + toolbars,
    explaing all the ruules and syntax and preferably not getting into
    programming lisp or some other cryptic language that I just dont have the
    time or aptitude to learn?

    2 - Also, whilst I freely alter my .pgp file for single commands, how can I
    attach a string of keystrokes .... (a keyboard macro?) to a single key?
     
    Dave, Nov 5, 2004
    #1
  2. Dave

    Rick Keller Guest

    Dave,

    (command "extrude" pause "" "333" "")

    Is autolisp.

    Its pretty simple and it looks like you have the "command" function down.
    If you want to make a command that you haven't done before just type the
    command at the command prompt and write down the answers you need for the
    questions.

    If the command had a dialogue box try adding a - in front of the command at
    the command prompt to see the steps needed for your (command "??") most of
    the commands that use a dialogue box the box doesn't pop up when run through
    "lisp".

    If you are wanting to change system variables use the setvar command like
    this (setvar "clayer" "0") this one will change the current layer.

    You can string them together (setvar "??" "?)(command "??"
    "something").......

    Look in the help files under command reference for a list of system
    variables and what they do.


    Answer for #2 is look at the **accelerators section in the menu.

    Rick
     
    Rick Keller, Nov 5, 2004
    #2
  3. Dave

    Dave Guest

    thanks Rick
    I will pursue you suggestions
     
    Dave, Nov 6, 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.