assigning keys in toolbar

Discussion in 'AutoCAD' started by J SMITH, Feb 16, 2005.

  1. J SMITH

    J SMITH Guest

    I want to create a custom icon to enter a numeric value.
    For example, I want to draw a line 6" long.
    Command: line
    start point,
    next point, (here I would click on my icon labeled "6" instead of 6 from the keyboard.)
    I have tried this thru customization for toolbars, but for the macro is there a way to use LISP or visual basic?
    Thanks
     
    J SMITH, Feb 16, 2005
    #1
  2. J SMITH

    Jim Claypool Guest

    Something like this?
    (command ".line" (getpoint "\nStart point") (strcat "@" (getstring
    "\nDistance") "<" (getstring "\nAngle")) "")
     
    Jim Claypool, Feb 17, 2005
    #2
  3. J SMITH

    Tom Smith Guest

    For example, I want to draw a line 6" long.
    the keyboard.)

    I think you're trying to make a simple thing difficult. What would be the
    application for this?
     
    Tom Smith, Feb 17, 2005
    #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.