Our Friends: Leaflet Printing , Presented by: Talia Cad Software

Sign In

Subscribe

Subscribe to Daily Autocad.


Sep 05
Friday
Autocad, Command
Command: _DISTANCE

AutoCAD 12 and higher versions

Here we are with one of the most frequently used commands in AutoCAD. It is a very useful command. It also has a very wide range of usage. Due to the fact that our company has been working on kitchen works for a quite long time, I will give an example for a kitchen. Let’s start with the drawing:

Fig.1
Fig.1

Kitchen designers know that it is very important to measure the distance between the kitchen cabinet that is last placed and the wall. In this case, we use DISTANCE command. The alias of this command is ‘DI’. You can also access to this command from ‘Inquiry’ menu (Fig. 2). However, I know that it is always the fastest way to use aliases of commands. I also suggest that you should get used to working in this way.

Fig.2
Fig.2
[text]Command : DI
DIST Specify first point: Specify second point:
Distance = 155.5, Angle in XY Plane = 0.0, Angle from XY Plane = 355.6
Delta X = 155.0, Delta Y = 0.0, Delta Z = -12.0[/text]
As a result of the command, you obtain information with a very rich content. The most valuable information is distance measurement. Angle information is given for all of the surfaces. This means that you can also select your points in 3 dimensional environment. In such cases, ‘Delta Z’ information will give the distance between the two points. This information is also very useful.

Have a nice day…

Viewed 4,416 times so far... This week: 35 Today: 2 Latest: 4 July 2009, 12:35

Post Tags: ,

7 Responses to “ Command: _DISTANCE ”
  1. Lisa Miguel

    Feb 17, 2008
    Reply

    What if you would like to measure the distance of several contiguous lines? (without having to repeat the Dist command several times and add the values of the distance manually)
    Thanks, Lisa Miguel

  2. Use PEDIT JOIN command if your lines connected with each other. If not please tell us write a LISP program summarizing total length of selected lines.

  3. I’ve used this command, but I have a small issue with it… while it has angle in xy plane, it only reports 3d distance and the three cardinal distance, so to get horizontal distance I have to pull out the calculator. I’ve been meaning to write a LISP routine to perform this task, but I am new to LISP and cannot remember how to extract values from inquiry commands.

    Any help would be greatly appreciated.

    Thanks to you and all of the contributors to awesome site, it has served as an excellent resource!

    Sincerely,
    Jason Connelly

  4. Hello Jason,

    ;; to select the line
    (setq en (car (entsel “\nSelct line:”)))
    ;; to get entity properties as list
    (setq el (entget en))
    ;; this list contains all data about the line
    ;; the 10 and 11 DXF fields are start and
    ;; end points of the line
    (setq p1 (cdr (assoc 10 el)))
    (setq p2 (cdr (assoc 11 el)))
    ;; the point list is like this (1.0 5.0 0.0)
    ;; 1.0 is X, 5.0 is Y and the 0.0 is the Z
    ;; coordinate of the point
    (setq p1x (nth 0 p1))
    (setq p1y (nth 1 p1))
    (setq p1z (nth 2 p1))
    ;; …
    ;; to get distance in XY plane
    (setq dx (abs (- p1x p2x)))
    (seqt dy (abs (- p1y p2y)))
    (setq dxy (sqrt (+ (expt dx 2) (expt dy 2))))

    Hope this helps

    Erhan

  5. how do you change the units to feet instead of inches?

  6. sagar singh

    May 15, 2009
    Reply

    plz tell me how we can give two dimention in different font size

  7. Hello Sagar,
    Your question is not belong to this article. The answer is simple. You can define two different dimension style for two different font size. And use them as needed. Please see the e-books :
    - http://www.dailyautocad.com/autocad/our-first-e-book-dimensioning/
    - http://www.dailyautocad.com/e-book/e-book-dimension-style-settings/


Post a Comment



All content and source © 2008 Daily Autocad | News Plus wordpress theme brought to you by Zidalgo.