Show in Contents

Add to Favorites

Home: AutoCAD .NET Developer's Guide
Determine the Parent Object

Create Objects

Create a Line Object
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
-
- Polyline
-
Creates a 2D lightweight
polyline.
- MLine
-
- Polyline2D
-
- Polyline3D
-
NotePolyline2D 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.