Create Lines (.NET)

The line is the most basic object in AutoCAD. You can create a variety of lines—single lines, and multiple line segments with and without arcs. In general, you draw lines by specifying coordinate points. Lines when created, inherit the current settings from the drawing database, such as layer, linetype and color.

To create a line, you create a new instance of one of the following objects:

Line

Creates a line.

Polyline

Creates a 2D lightweight polyline.

MLine

Creates a multiline.

Polyline2D

Creates a 2D polyline.

Polyline3D

Creates a 3D polyline.

Note: Polyline2D objects are the legacy polyline objects that were in AutoCAD prior to Release 14, and the Polyline object represents the new optimized polyline that was introduced with AutoCAD Release 14.