×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Measuring polyline distance

Measuring polyline distance

Measuring polyline distance

(OP)
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????

RE: Measuring polyline distance

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.

RE: Measuring polyline distance

(OP)
This does not seem to work any other ideas?

RE: Measuring polyline distance

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.

RE: Measuring polyline distance

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.

RE: Measuring polyline distance

Try this.  Use the Cal command with distance end to end (DEE) option.  Hope this helps.

John

RE: Measuring polyline distance

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

RE: Measuring polyline distance

(OP)
CAL DEE worked great.  Thank you.

RE: Measuring polyline distance

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.

RE: Measuring polyline distance

(OP)
My version of CAD 2000 does not recognize the MODIFY command?

RE: Measuring polyline distance

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

RE: Measuring polyline distance

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.

RE: Measuring polyline distance

(OP)
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?

RE: Measuring polyline distance

Split your line and then measure.

RE: Measuring polyline distance

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources