Polylines in AutoCAD for Civil Engineers: Plot Area, Contours, Pipes
How civil engineers use polylines in AutoCAD 2027: a plot boundary from survey coordinates with its area in m², sq ft and acres, a curved road frontage, contours at their elevations and a 3D polyline for sewer inverts. Every number checked by a script.

A polyline in AutoCAD is one object made of connected straight and arc segments. Civil engineers draw a plot boundary as one closed polyline so AutoCAD can report its area and perimeter instantly. Each contour is a 2D polyline set at its own elevation. Pipes and road edges whose level changes along their length are drawn as 3D polylines. Type PL, pick or type the points, and type C to close the shape.
Key numbers (AutoCAD 2027 help, checked 21 Nov 2026; arithmetic checked by Skill-Lync's script)
- Worked plot: five surveyed corners give 942.65 m² as a closed polyline. That is 10,146.6 sq ft, 0.2329 acre or 0.0943 ha, with a 119.546 m boundary.
- Curved frontage: bending the 32.5 m road side into an arc with a 2.0 m bulge adds 43.46 m², taking the plot to 986.11 m² (10,614.4 sq ft). Measuring the chord instead understates the plot by about 4.4%.
- Open vs closed: AREA treats an open polyline as closed for the area (942.65 m² either way). It leaves out the missing side for the length: 100.699 m instead of 119.546 m.
- Contours: with a 1 m contour interval, contours 10 m apart on plan mean a 1 in 10 (10%) slope. Contours 25 m apart mean 1 in 25 (4%).
- Unit factors: 1 ft = 0.3048 m exactly, so 1 m² = 10.7639 sq ft. 1 acre = 43,560 sq ft = 4,046.86 m² (NIST). 1 ha = 10,000 m².
This guide is for civil engineering students and site or drafting engineers who know basic AutoCAD drawing and want to use polylines on site plans, survey drawings and services layouts. Commands and system variables are quoted from Autodesk's AutoCAD 2027 help (release notes dated 25 March 2026). They work the same way in recent releases and in AutoCAD LT. The plot, contour and pipe values are worked examples, not data from a real site. For every PLINE and PEDIT option in detail, see our polyline command guide.
What is a polyline, and how is it different from a line?
A LINE drawing of a five-sided plot is five separate objects. A polyline drawing of the same plot is one object with five segments. That single object can be selected, moved, offset or hatched in one click, and it knows its own area and length. Polylines can also contain arcs and carry a width. A 3D polyline can climb or fall along its length, which a 2D polyline cannot.
| LINE | 2D polyline (PL) | 3D polyline | |
|---|---|---|---|
| Objects | One per side | One for the whole shape | One for the whole run |
| Arcs | No (separate ARCs) | Yes | No, straight segments only |
| Levels (Z) | Each end can differ | One elevation for every vertex | Each vertex can differ |
| Width | No | Constant or tapered | No |
| Gives area | No | Yes | No (need not be flat) |
| Civil use | Setting-out and quick sketches | Plot and building outlines, contours, setbacks, hatch boundaries | Sewer and drain inverts, road edges, kerb lines with levels |
Autodesk's help lists more reasons to choose polylines. Vertices stay joined after grip editing. Rectangles and polygons come out as single objects. A dashed or fence linetype can run continuously around corners (the PLINEGEN setting). In full AutoCAD, a closed polyline extrudes straight into a 3D solid. Modern 2D polylines are "lightweight" objects that store every vertex in one entity, so large site plans stay small and fast.
How do I draw a plot boundary from survey coordinates?
Run PLINE (PL), type the first corner as absolute coordinates (for example 0,0), type each next corner, and finish with C to close. Set drawing units to metres first, so one unit is one metre. A closed polyline gives you area and perimeter directly, and it can be offset to make a setback line or used as a clean hatch boundary.
The worked plot has five corners from a survey, in metres: A (0, 0), B (32.5, 0), C (38.0, 21.4), D (17.2, 29.8) and E (−3.6, 18.5). At the command line:
PL
0,0
32.5,0
38,21.4
17.2,29.8
-3.6,18.5
C
If the survey gives bearings and distances instead of coordinates, enter each corner with relative polar input (@distance<angle). Our guide to relative and polar coordinates shows how.
How does AutoCAD calculate the area of a polyline?
For a polyline with straight sides, AutoCAD's area equals the surveyor's shoelace formula. Take the vertices in order, add up xiyi+1 − xi+1yi for every side (wrapping back to the first vertex), and halve the total. Select the polyline and read Area in the Properties palette, or run AREA, type O for Object, and pick it.
| Side | xiyi+1 − xi+1yi | Value |
|---|---|---|
| A → B | 0 × 0 − 32.5 × 0 | 0.00 |
| B → C | 32.5 × 21.4 − 38.0 × 0 | 695.50 |
| C → D | 38.0 × 29.8 − 17.2 × 21.4 | 764.32 |
| D → E | 17.2 × 18.5 − (−3.6) × 29.8 | 425.48 |
| E → A | (−3.6) × 0 − 0 × 18.5 | 0.00 |
| Sum | 1,885.30 | |
Half of 1,885.30 is 942.65 m². Skill-Lync's script checks it a second way, by splitting the plot into three triangles from corner A, and gets the same answer. The perimeter is the sum of the five sides, 119.546 m. AutoCAD reports both when you pick the polyline with AREA > Object.
How do I convert a plot area to square feet, acres and hectares?
Divide square metres by 0.09290304 (that is 0.3048²) for square feet. Divide by 4,046.8564224 for acres, and by 10,000 for hectares. NIST's conversion table defines the international foot as exactly 0.3048 m and the acre as 43,560 sq ft, or 4,046.8564224 m². When a client or buyer thinks in sq ft, give both figures on the drawing.
| Unit | Worked plot (942.65 m²) | Curved frontage (986.11 m²) |
|---|---|---|
| Square feet | 10,146.6 sq ft | 10,614.4 sq ft |
| Acres | 0.2329 acre | 0.2437 acre |
| Hectares | 0.0943 ha | 0.0986 ha |
Regional land units such as cents, guntha or bigha differ from state to state, so take the conversion from the local land-records office rather than a generic table.
What if the boundary has a curved road frontage?
Draw the curved side as an arc segment of the same polyline, using PLINE's Arc option or the Convert to Arc grip, and AutoCAD includes the curved area automatically. Checking by hand, add the circular segment between the chord and the arc to the straight-sided area. Measuring only the chord understates a curved plot.
Suppose side AB (32.5 m) follows a road that curves away from the plot, so the boundary bulges outwards. The arc's middle sits 2.0 m off the straight line AB (this distance is the sagitta, s). The radius and the angle the arc spans follow from the chord c and the sagitta:
The plot grows from 942.65 m² to 986.11 m², which is 10,614.4 sq ft instead of 10,146.6. The arc is 32.827 m long against the 32.500 m chord, so the boundary grows to 119.873 m. AutoCAD stores this arc as a bulge on vertex A: tan(θ/4) = 0.1231, which here also equals 2s/c. Our polyline command guide explains bulge values in full. Skill-Lync's script checks the 986.11 m² by measuring a 200,000-point copy of the curved outline, and the two results agree.
Why does an open polyline give the wrong perimeter?
Because AREA handles the missing side differently for area and for length. Autodesk's help says that for an open polyline the area is calculated as if a line joined the last point to the first, but that line is ignored for the perimeter. So the area looks right while the boundary length is short by exactly the missing side. Closing the polyline fixes both.
This is a common mistake on fencing and compound-wall quantities, which are measured on the boundary length. If the plot above were left open, the length would read 100.699 m instead of 119.546 m. To fix an existing polyline, select it and set Closed to Yes in the Properties palette, or run PEDIT and choose Close. A polyline whose last point merely sits on its first point is still open as far as AutoCAD is concerned.
One more detail from the same help page: for a wide polyline, AREA measures along the centreline of the width, not the outer edge. If you drew a compound wall as a 230 mm wide polyline, the area is measured to the wall's centreline.
How do I turn separate lines into one closed polyline?
Use JOIN (alias J): select the lines and arcs and press Enter. If they meet end to end in one plane, the result is a single polyline. When the ends don't quite touch, use PEDIT > Multiple > Join with a fuzz distance. When the area is enclosed by many objects, BOUNDARY (alias BO) builds a new closed polyline when you click inside it.
- JOIN: lines, polylines and arcs joined to a polyline must be contiguous and coplanar. Closed objects can't be joined. A line drawn at a different Z elsewhere on the survey drawing is the usual reason a JOIN fails.
- PEDIT > Multiple > Join: converts lines and arcs to polylines (it asks first, unless PEDITACCEPT is 1). A fuzz distance joins ends that are close but not touching. Jointype decides whether gaps are closed by extending the segments (Extend), adding a short segment (Add), or either (Both).
- BOUNDARY: click inside a room, plot or paved area drawn with loose lines and it creates a closed polyline (or region) around that space. You can then read the area with LIST or the Properties palette. Autodesk's help suggests this as the fast way to find an area bounded by several objects.
- Adding areas: AREA's Add and Subtract modes total several polylines, for example all the flats on a floor minus the shafts. MEASUREGEOM's Quick mode shows the area when you click inside a closed space.
How are contours drawn with polylines?
Each contour is a 2D polyline with its Elevation set to the contour level, for example 102.000. A 2D polyline stores one elevation for all its vertices, which is exactly what a contour is: a line joining points at the same level. Closed contours around a hill or a pond are closed polylines. LIST shows each one's elevation so you can check the levels.
The gradient between two contours is the contour interval divided by the horizontal distance between them, measured at right angles to the contours. With a 1 m interval, contours 10 m apart on plan give 1 m in 10 m, or 10%. Where they are 25 m apart the slope is 1 in 25, or 4%. With DIST between two snapped points on neighbouring contours, you can read this off a site plan in seconds when choosing where a ramp, drain or access road should run.
In the drawing file, the elevation is a single value per lightweight polyline (DXF group code 38), and every vertex has only X and Y. That is why you can't make one 2D polyline climb from 100 m to 104 m. For that you need a 3D polyline.
When do I need a 3D polyline instead?
Use a 3D polyline (3DPOLY) when the level changes along the line: a sewer or storm drain between manholes, a kerb line, or a road edge on a gradient. Each vertex keeps its own X, Y and Z, so the levels travel with the drawing. 3D polylines have straight segments only. Draw curves as short chords, or use a spline.
A worked sewer run makes the point. Three manholes are 45 m and 30 m apart on plan, with the pipe falling at 1 in 150:
| Manhole | X, Y (m) | Invert level (Z, m) | Fall from previous |
|---|---|---|---|
| MH1 | 0, 0 | 100.000 | start |
| MH2 | 45, 0 | 99.700 | 45 ÷ 150 = 0.300 m |
| MH3 | 45, 30 | 99.500 | 30 ÷ 150 = 0.200 m |
Drawn with 3DPOLY through 0,0,100 then 45,0,99.7 then 45,30,99.5, the line carries every invert. ID on any vertex reads the level back, and DIST between two vertices gives the change in Z directly. Its true 3D length is 75.0017 m against 75.000 m on plan. At gentle drainage gradients that 1.7 mm difference doesn't matter. The 3D polyline is worth using for the levels it carries, not the length.
Where else do civil engineers use polylines?
- Setback and building lines: OFFSET a closed plot polyline inwards by the required setback and you get the buildable outline as one object. See our OFFSET guide for civil drawings.
- Hatch boundaries: a hatch built from a polyline keeps its link when you later fillet or chamfer the boundary. One built from separate lines loses it.
- Road and kerb outlines: straight runs plus arc segments in one object, with corners rounded by FILLET (see our FILLET guide with a road-curve example) or splayed with CHAMFER.
- Services: pipe and cable routes as polylines with a width, so the run plots at a visible thickness whatever the lineweight settings.
- Quantities: areas of rooms, paving and plots from AREA or the Properties palette. Lengths of walls, fences and drains from the polyline's Length.
Common polyline problems on civil drawings
- The area looks right but the perimeter is short: the polyline is open. Set Closed to Yes.
- JOIN leaves separate objects: there are gaps, or the pieces are at different elevations. Use PEDIT > Multiple > Join with a fuzz distance, and check Z with LIST.
- The area is off by a factor of 1,000,000: the drawing is in millimetres, so the area is in mm². Divide by 1,000,000 for m².
- A wide polyline's area looks small: AREA measures along the centreline of the width.
- A survey line won't take an arc: it was drawn with 3DPOLY. 3D polylines have no arc segments.
Where can I learn AutoCAD for civil engineering properly?
Skill-Lync's AutoCAD Essentials for Civil Engineers has about 30 hours across 60 lessons. Polylines get their own lesson on using them in architectural and civil drafting, and a later lesson covers measuring areas with the inquiry tools. Week 5 adds 3D polylines, splines and polyline editing. The first three lessons are free on Grow, and the AutoCAD hub lists our other AutoCAD courses.
Not sure whether AutoCAD alone, Revit and BIM, or a full civil programme fits your plans? Talk to a Skill-Lync counsellor.
Frequently asked questions
How do I get the area of a plot in square feet in AutoCAD?
Draw the plot as a closed polyline in metres, then select it and read Area in the Properties palette, or run AREA, type O and pick it. AutoCAD reports square metres. Divide by 0.09290304 for square feet. The worked 942.65 m² plot is 10,146.6 sq ft. If you drew in millimetres, divide the area by 1,000,000 first.
What is the difference between a 2D polyline and a 3D polyline?
A 2D polyline lies flat at one elevation. It can have arc segments and widths, and it gives a proper area, which suits plot outlines and contours. A 3D polyline, drawn with 3DPOLY, lets every vertex have its own Z level but allows straight segments only. That suits sewer inverts, kerb lines and road edges on a gradient.
How do I close a polyline that I left open?
Select it, open the Properties palette and set Closed to Yes, or run PEDIT, pick the polyline and choose Close. Either way AutoCAD adds the closing segment. An open polyline gives the correct area but a length that leaves out the missing side, which matters for fencing and compound-wall quantities.
Why won't my lines join into a polyline?
JOIN needs the pieces to be contiguous and coplanar. A small gap, an overlap or a different Z elevation stops it. Check elevations with LIST, then use PEDIT, choose Multiple, select everything and use Join with a fuzz distance slightly larger than the biggest gap. BOUNDARY is the alternative: click inside the area and it builds a new closed polyline.
Can I calculate the slope between contours in AutoCAD?
Yes. Measure the horizontal distance between two neighbouring contours with DIST, at right angles to them, then divide the contour interval by that distance. With a 1 m interval, contours 10 m apart mean a 1 in 10 (10%) slope and 25 m apart mean 1 in 25 (4%). Run LIST on both contours first to confirm their elevations.
Sources and further reading
- Autodesk, About Polylines, AutoCAD 2027 help, accessed 21 Nov 2026.
- Autodesk, AREA (Command) and About Finding Area and Mass Properties Information, AutoCAD 2027 help, accessed 21 Nov 2026.
- Autodesk, JOIN, PEDIT, 2D Polyline Selection (PEDIT) and BOUNDARY, AutoCAD 2027 help, accessed 21 Nov 2026.
- Autodesk, 3DPOLY (Command) and PLINETYPE, AutoCAD 2027 help, accessed 21 Nov 2026.
- Autodesk, LWPOLYLINE (DXF) group codes (elevation 38, bulge 42), accessed 21 Nov 2026.
- Autodesk, LIST and DIST commands, AutoCAD 2027 help, accessed 21 Nov 2026.
- Autodesk, AutoCAD 2027 Release Notes, 25 March 2026.
- NIST, U.S. Survey Foot: Revised Unit Conversion Factors (international acre = 43,560 ft² = 4,046.8564224 m²), accessed 21 Nov 2026.
- BIPM, The International System of Units (SI Brochure) (hectare = 10⁴ m²), accessed 21 Nov 2026.
- Symetri, AutoCAD shortcut guide (default aliases PL, J, BO, PE), accessed 21 Nov 2026.
- Skill-Lync, AutoCAD Essentials for Civil Engineers, course page, syllabus and lesson list, accessed 21 Nov 2026.


