dimensions help

Discussion in 'AutoCAD' started by longshot, Feb 13, 2004.

  1. longshot

    longshot Guest

    if I wanted to set up an alias for a horizontal linier dimension, what would
    be my command line?


    Thanks
    Rob
     
    longshot, Feb 13, 2004
    #1
  2. longshot

    B. W. Salt. Guest


    The following lisp will allow you to use DH as the alias;


    (DEFUN C:DH () (C:SLD) (EON) (SETVAR "OSMODE" 1)
    (COMMAND "DIM" "HORIZ" PAUSE PAUSE PAUSE "" "EXIT") (SETVAR "OSMODE" 0)
    (EOF))
     
    B. W. Salt., Feb 13, 2004
    #2
  3. longshot

    longshot Guest

    thx, but it doesn't work.... here's what I get:

    ; error: no function definition: C:SLD
     
    longshot, Feb 16, 2004
    #3
  4. longshot

    B. W. Salt. Guest

    Sorry! My Acad is set to use a layer named DIMENSION and the command SLD
    sets the layer to DIMENSION.

    The additional line is:

    (DEFUN C:SLD () (COMMAND "LAYER" "SET" "DIMENSION" ""))

    Change 'DIMENSION' to the name of your dimension layer, if you have one.

    This code is part of Jkeys.lsp, which is a series of aliases for a range
    of commands. It requires some layers to be named to match the code.

    If you wish, I could email the full lisp file if you can confirm your
    email address. Note the comment below about my email address.

    Brian Salt.
    Remove NS from address before replying



    ..
     
    B. W. Salt., Feb 17, 2004
    #4
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.