# Thread: How to measure distances

1. ## How to measure distances

Registered forum members do not see this ad.

Hi, I'm drawing a warehouse in 2d. It's really simple: just a rectangle with squares (representing the shelves). My question is: given a few points inside the warehouse (let's say 20 points), how can I get a matrix or something, that gives me the shortest (but posible) distance between every point? I say posible because I dont want to have the euclidean distances, but the real distances that represent the path that a person can walk ?

Thanks a lot!

Andres

2. Type in command line in "ddptypes" and choose for proper point style.Then you can draw with "point" command and you can use copy or array as you need.Next you will be check os snap setting for "node".Finally you can measure between two points with linear dimension or distance.

3. Originally Posted by aberrio
Hi, I'm drawing a warehouse in 2d. It's really simple: just a rectangle with squares (representing the shelves). My question is: given a few points inside the warehouse (let's say 20 points), how can I get a matrix or something, that gives me the shortest (but posible) distance between every point? I say posible because I dont want to have the euclidean distances, but the real distances that represent the path that a person can walk ?

Thanks a lot!

Andres
just draw a polyline from start point to end point following a path which you were refering to and use AREA to see the length of the pline, or just look into the object properties under Length

4. thank you for your replies... the problem is that i have about 70 nodes (points) inside the warehouse, and i was looking for a way to do this automatically, rather than doing about 2.500 polylines.... (70*70 / 2) .....

any suggestions?

5. Originally Posted by aberrio
thank you for your replies... the problem is that i have about 70 nodes (points) inside the warehouse, and i was looking for a way to do this automatically, rather than doing about 2.500 polylines.... (70*70 / 2) .....

any suggestions?
You should change your point style from format menu--point style and size before you make point.

6. Registered forum members do not see this ad.

Assuming the aisles are at 0 and 90 degrees.
Code:
```(defun c:test ()
(setq pt1 (getpoint "Select start point A: ")
pt2 (getpoint "Select end point B: " pt1)
crow (distance pt1 pt2)
ang (angle pt1 pt2)
wdist (+ (* (sin ang) crow) (* (cos ang) crow))
)
(princ)
(alert (strcat "The walking distance between Point A & Point B is " (rtos wdist 2 2)))
)```

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts