AutoCAD

LT On-line: Lesson 12

1 Mar, 2001 By: Mark Middlebrook


Why Line when you can Pline?

Page 1: A polyline primer

After all of the conceptual "heavy lifting" in my previous sets of LT Online lessons on blocks and xrefs, we'll take a breather this month and consider when and how to use the Pline command. If you're one of those LT or AutoCAD users who doesn't fully appreciate why Pline is better than the Line command for many drawing tasks, then use this lesson to develop your polyline prowess.

The procedures described here work with AutoCAD LT 98-2000i and AutoCAD Release 14-2000i.

A polyline primer

Click for larger image
Click for larger image
Figure 1.
By now, you're familiar with using the Line command to draw straight line segments-either a single segment or a series of segments that lie end to end. The Line command is fine for some drawing tasks, but the Pline (or Polyline) command is a better, more flexible choice in many situations. The most important differences between these two commands are:

The Pline command draws curved segments as well as straight ones (figure 1). Curved polyline segments are circular arcs, of the sort that you can draw with the Arc command.

Click for larger image
Click for larger image
Figure 2.
With the Pline command, you can add width (either uniform or tapered) to straight and curved segments (figure 2). This feature is less important in AutoCAD 2000, which has object lineweights and plot styles for controlling on-screen and plotted lineweights.

The Line command draws a series of single line segment objects. Even though they appear to be linked onscreen, each segment is a separate object. The Pline command, on the other hand, draws a single, connected, multi-segment object. Figure
Click for larger image
Click for larger image
Figure 3.
3 shows how the same sketch drawn with the Line and the Pline commands responds when you select one of the segments.

The last difference is the most important. When you use the Line command, AutoCAD draws a type of object called, appropriately enough, a line. AutoCAD stores each segment as a separate line object. The Pline command draws a special kind of multi-segment object called a polyline (sometimes referred to as a pline because of the command name). AutoCAD stores all of the segments together as one object.

Why is this difference important? With the Pline command, you can group together segments that belong together. If you draw a series of end-to-end segments, there's a good chance that those segments are logically connected. For example, they might represent the outline of a single object or a continuous pathway. If the segments are connected logically, then it makes sense to keep them connected in AutoCAD.

The most obvious practical benefit of grouping segments together into a polyline is that many editing operations are more efficient when you use polylines. If you move one line segment, other segments that you drew at the same time don't move with it. The same is true for other common editing operations, such as copying, erasing, rotating, and mirroring. When you select any segment in a polyline for editing, the entire polyline is affected.

In short, you can get the same plotted results by using the Line and Arc commands or the Pline command, but Pline results in objects that are more logically organized and that respond more sensibly to editing operations.

Why Line when you can Pline?
  Page 1: A polyline primer
  Page 2: Follow the Pline prompts
  Page 3: Polyline prowess


About the Author: Mark Middlebrook


AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Latest News from Cadalyst Partners
Feed
Place your DWG File on a Diet   18 Jun, 2013

I received an email from blog reader Steve Roberts with a suggested tip topic on how to reduce the size and clean up DWG drawing files using four...More>>Read all Between the Lines blog posts>>

Feed
Tech Toys 360: Pro-Form Le Tour de France Bike   18 Jun, 2013

The greatest bike race in the world is held June 19 to July 21 this year. Celebrating its 100th year, the Tour de France sends riders through more...More>>Read more PTC Creo blog posts>>

Feed
Update 3 now available for Revit 2013 Products - Revit Clinic   18 Jun, 2013

...More>>Read more BIMbuilder blog posts>>

Feed
Nice Design—What Does It Feel Like?   17 Jun, 2013

...More>>Read more SolidWorks Blog posts>>

Feed
LiveMap: The Augmented Reality Motorcycle Helmet of the Future?   18 Jun, 2013

Philippe Starck once famously said that there should be no cars on the road—-only motorcycles. While some soccer moms may disagree, his theory...More>>Read more SolidSmack blog posts>>

Poll
How many years' experience do you have using CAD software?
Less than two years
2–5 years
6–10 years
11–20 years
21+ years
Submit Vote




FREE Resources for CAD, BIM, and PLM Users





Subscribe Cadalyst Newsletters