Categories

AutoCAD 2012 & AutoCAD LT 2012 Bible

The most comprehensive AutoCAD book around!

AutoCAD 2012 Bible

Automatically follow a linear dimension with a continued dimension

Ted Harris e-mailed me an AutoLISP routine that he uses to follow a linear dimension with a continued dimension. He notes, “one rarely enters one Dim, at least in a production environment.” I’ve updated his solution for recent versions of AutoCAD.

(defun c:dlc () (command “_dimlinear” pause pause pause) (command “_dimcontinue”) )

Add this to your acad.lsp file or create a separate LSP file and load it. When you’re ready to dimension, enter dlc and press Enter. (DLC stands for dimension linear continued.) The command starts the DIMLINEAR command and pauses for you to specify the start and end point and place the dimension line. Immediately afterward, the DIMCONTINUE command starts and you can continue to dimension.

Related posts:

  1. Create a dimension style on the fly
  2. Dimension an arc length
  3. Dimensions and associativity
  4. Creating fields that update automatically (for 2000-2004)

2 comments to Automatically follow a linear dimension with a continued dimension

  • Giny

    Hello,

    I can’t get this to work. I have tried to put it in a acad.lsp file and also to create a separate .lsp file. It does not work. I am using Autocad 2011. Please some help needed.

    Thank you.

  • IAN

    Putting your lisp file in the acad.lsp file will not work as this will only load ONCE when autocad is first started up.You need to put your lisp file in the acaddoc.lsp file which is loaded with every new drawing file.Put this code into your acaddoc.lsp file and try it out:
    (load “your file name”)
    (vl-load-com)

    Or alternatively, you could leave your lisp file in the acad.lsp file and change the ACADLSPASDOC system variable from 0 (default) to 1.This WILL reload the acad.lsp file for every new drawing.

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>