Friday
Autocad, CommandCommand: _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
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
[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:35Post Tags: Autocad, Command
Related Posts
Popular
- Hip tip: Increasing view resolution with VIEWRES system variable
07/03/2009 04:39 am
7 Comments - Sirince – IZMIR
07/02/2009 11:02 am
1 Comment - Visual LISP: Programming user interfaces with OpenDCL
07/01/2009 10:15 pm
10 Comments - 3D Modeling 7: EXTRUDE
06/30/2009 02:14 pm
10 Comments - Ask DailyAutoCAD: Which Notebook to Buy?
06/30/2009 12:17 pm
1 Comment
Featured Articles
- AutoCAD 2009 Update 3 Released
- Speed Up As AutoCAD 2009 Ribbon Menu Helps You!
- MEP Analysis Extension for AutoCAD MEP extended to March 31, 2009
- Recap of AutoCAD-related technologies on Autodesk Labs
- Technology Preview of MEP Analysis Extension extended to 12/31/08
- Autodesk Labs: Forward and Backward utility for AutoCAD
|

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
Feb 18, 2008
Reply
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.
Sep 7, 2008
Reply
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
Sep 8, 2008
Reply
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
Sep 24, 2008
Reply
how do you change the units to feet instead of inches?
May 15, 2009
Reply
plz tell me how we can give two dimention in different font size
May 18, 2009
Reply
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/