Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Measuring polyline distance

Status
Not open for further replies.

corvette63

Civil/Environmental
Sep 28, 2004
71
I am running CAD 2000 and want to measure the distance of a polyline. The distance command can only provides between two points. My polyline meanders through the drawing. Similar to wanting to find the distance of a sidewalk????

 
Replies continue below

Recommended for you

list and area both give the length
also the properties window for the polyline shows the length
if you are adding up several discrete lines or polylines, either a custome macro or area should do it.
 
This does not seem to work any other ideas?
 
It has to work! It's what AutoCAD does!! As your polyline meanders through the drawing, is it one object or multiple objects? If you single left click on it, does the whole thing become highlighted or just a part of it? If you use the Area command, use the E option and then pick the polyline. AREA E pick. If you use the List command, type LIST and then pick the object. The length show up very early in the list - if you have lots of nodes, you will have to scroll up a ways.
 
I'm writing a VBA macros for AutoCAD 2005 and I need some help.
How can I get the coordinates of group of selected points drawn in AutoCAD and print them into TXT or XLS file?
Please, give me some indications.
 
Try this. Use the Cal command with distance end to end (DEE) option. Hope this helps.

John
 
MODIFY --> LENGTHEN

then select polyline, gives total length

experiment with options on command line.

hope this helps

Intel P4 3.0 GHZ
512 DDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1
 
CAL DEE does not work great to get a polyline length. I tried it and it just gave straight line distance between endpoints - same as the distance command. OZZY84's suggestion gives the correct length with fewer keystrokes.
 
My version of CAD 2000 does not recognize the MODIFY command?
 
LENGTHEN on the command line will invoke.

Intel P4 3.0 GHZ
512 DDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1
 
If the polyline is truly a polyline, and all one piece, simply type "list", hit enter, select the polyline and hit enter again. The text window should pop up, (if not hit f2). You will get a bunch of info about that polyline, including length. It will look kind of like this:


LWPOLYLINE Layer: "0"
Space: Model space
Handle = 3346
Open
Constant width 0'-0"
area 435864.360 square in. (3026.83583 square ft.)
length 233'-8 7/32"

at point X=147'-4 93/128" Y=21'-8 33/64" Z= 0'-0"
at point X=147'-4 93/128" Y=75'-6 107/256" Z= 0'-0"
at point X=213'-1 69/256" Y=75'-6 107/256" Z= 0'-0"
at point X=213'-1 69/256" Y=133'-1 17/32" Z= 0'-0"
at point X=269'-7 119/128" Y=133'-1 17/32" Z= 0'-0"

This can't "not work" unless it is not really a continuous polyline.

 
List is working as described above to find the total length of the polyline. What if you want to find the length of portion of the polyline?
 
Or, set your object snap to ENDPOINT and then invoke the DISTANCE command, picking the two points.

Or, EXPLODE your polyline and then use the DISTANCE command.

If you explode your polyline and then want a list of each line segment's length and the total length, you will need a macro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor