if I wanted to set up an alias for a horizontal linier dimension, what would be my command line?
Thanks Rob
if I wanted to set up an alias for a horizontal linier dimension, what would be my command line?
Thanks Rob
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))
DIMLINEAR already has an alias assigned to it; DIMLIN. You can lookup, edit and add aliases by opening the acad.pgp file found in the support folder or with the express tool Alias Editor. You can't however specify horizontal or vertical until you've started the command. For that, you would need to use the B.W. lisp routine.
thx, but it doesn't work.... here's what I get:
; error: no function definition: C:SLD
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
.PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.