dimensions help

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

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
snipped-for-privacy@aol.com (longshot) wrote:

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))
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
thx, but it doesn't work.... here's what I get:
; error: no function definition: C:SLD
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
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
snipped-for-privacy@NScix.co.uk (B. W. Salt.) wrote:

.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
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.

would
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.