Geometry

Create basic geometric objects such as lines, circles, and hatched areas.

You can create a lot of different types of geometric objects in AutoCAD, but you only need to know a few of them for most 2D drawings.

Tip: If you want to simplify the display while you create geometric objects, press F12 or on the touch bar, to turn off dynamic input at the cursor.

Lines

The line is the most basic and common object in AutoCAD drawings. To draw a line, click the Line tool.

Alternatively, you can type LINE or just L in the Command window, and then press Enter or the Spacebar.

Notice the prompt in the Command window for a point location.

To specify the starting point for this line, you would type in the Cartesian coordinates 0,0. It's generally a good idea to locate one corner of your model at 0,0, which is called the origin point. To locate additional points, you could specify additional X,Y coordinate locations in the drawing area, however more efficient methods for specifying points are available, and will be presented in the Precision topic.

After you specify the next point, the LINE command keeps prompting you for additional points. Press Enter or the Spacebar to end the sequence.

Grid Display

Some people like working with grid lines as a reference, while others prefer working in a blank area. To turn off the grid display, press F7 or on the touch bar. Even with the grid turned off, you can force your cursor to snap to grid increments by pressing F9 or on the touch bar.

Lines as Construction Aids

Lines can serve as reference and construction geometry such as

Circles

The default option of the CIRCLE command requires you to specify a center point and a radius.

Additional circle options are available from the drop-down:

Alternatively, you can also enter CIRCLE or just C in the Command window and specify an option.

Circles can be useful as reference geometry. For example, you can see that the two doors in the illustration can interfere with each other.

Polylines and Rectangles

A polyline is a connected sequence of line or arc segments that is created as a single object.

Use the PLINE command to create open or closed polylines for

Polylines can have a constant width or they can have different starting and ending widths. After you specify the first point of the polyline, you can use the Width option to specify the width of all subsequently created segments. You can change the width value at any time, even as you create new segments.

Polylines can have different starting and ending widths for each segment as shown here:

Here is an example of a printed circuit board in which the traces were created with wide polylines. The landing pads were created with the DONUT command.

A fast way to create closed rectangular polylines is to use the RECTANG command (enter REC in the Command window).

Simply click two diagonal points for the rectangle as illustrated.

Hatches and Fills

In AutoCAD, a hatch is a single, compound object that covers a specified area with a pattern of lines, dots, shapes, a solid fill color, or a gradient fill.

When you start the HATCH command, the Hatch visor temporarily displays. On this visor, you can choose from industry-standard imperial and ISO hatch patterns, along with many specialized options.

The simplest procedure is to choose a hatch pattern and scale from the visor, and click within any area that is completely enclosed by objects. You need to specify the scale factor for the hatch to control its size and spacing.

After you create a hatch, you can move the bounding objects to adjust the hatch area, or you can delete one or more of the bounding objects to create partially bounded hatches:

If you set a hatch pattern to be a solid or gradient fill, also consider setting a transparency level for interesting overlap effects. To set the transparency, select the hatch object and adjust the slider on the Properties Inspector.
Note: The Properties Inspector is covered in the Properties topic.

Here are some examples of how you can use solid-fill hatches:

Note: If an area is not completely enclosed, red circles display to indicate places to check for gaps. Enter REDRAW in the Command window to dismiss the red circles.

If you need to align the pattern in a hatch, which might be the case with the decking boards above, hover over the hatch's origin grip, and select Origin Point to specify an alignment point.

The User Coordinate System (Optional)

The user coordinate system (UCS) icon indicates the direction of the positive X and Y axis for any coordinates that you enter, and it also defines the horizontal and vertical directions in a drawing. In some 2D drawings, it can be convenient to click and place the UCS to change the origin point and the X or Y axis.

For example, by reorienting the UCS, you can create rectangles that are automatically aligned with the X axis as shown.

To restore the user coordinate system to its original location, enter UCS in the Command window and press Enter to specify the default <World> option.

Overlapping Objects

For overlapping hatches, fills, wide polylines, and text objects, use the DRAWORDER command to determine which objects are on top or below the others. For example, you probably want the yellow highway to cross the blue river rather than the other way around.

You can access several draw order options from the Modify panel on the tool set. Click on the Modify panel and check to display the Draw Order drop-down.

Expand the drop-down to see draw order options including sending all hatches to the back, selected objects to the front, and so on.

The drop-down list displays options for selected objects plus options that apply to all objects of a certain type, such as text.