AutoCAD

How to Fill a Rectangle in AutoCAD?

Understanding the Basics of Filling a Rectangle in AutoCAD

When working with AutoCAD, filling a rectangle with a color or pattern can enhance the visual appeal and clarity of your drawings. This guide will provide a detailed step-by-step approach to effectively fill a rectangle in AutoCAD 2025.

Step 1: Set Up Your Workspace

Before you begin filling a rectangle, ensure that your AutoCAD workspace is properly set up for drawing. If you are focusing on 2D shapes, ensure you are in a 2D drawing environment.

  1. Navigate to the status bar at the bottom of the AutoCAD window.
  2. If necessary, click on Workspace Switching and select 2D Drafting & Annotation to create your rectangle.

Step 2: Draw the Rectangle

To fill a rectangle, you must first create it. Follow these steps:

  1. Go to the Home tab located at the top of the application.
  2. Click on the Draw panel.
  3. Select the Rectangle tool from the dropdown menu.
  4. Specify the first corner point of the rectangle by clicking in the drawing area.
  5. Move your cursor and click again to select the opposite corner point, completing the rectangle.

Step 3: Access the Hatch Command

Once you have your rectangle, you can fill it using the Hatch command, which allows you to apply a color, pattern, or gradient to the drawn area.

  1. Navigate to the Home tab, and locate the Draw panel.
  2. Click on the Hatch button, which is typically represented by a patterned box icon.

Step 4: Define Hatch Properties

When the Hatch dialog box opens, you will have several options to customize your fill:

  1. In the Hatch and Gradient dialog, select the type of hatch you want, such as solid fill, pattern, or gradient.
  2. Choose the desired color from the color palette provided. You can input RGB values or select a color from the predefined options.
  3. After selecting the desired settings, ensure that the Boundaries panel allows you to choose how the area will be selected. You often select "Pick Points" for simple shapes.

Step 5: Fill the Rectangle

To fill the rectangle with the chosen hatch:

  1. Click inside the rectangle after selecting Pick Points in the Boundaries panel.
  2. AutoCAD will identify the closed area of the rectangle. If the area is recognized, the pattern will automatically fill the shape.
  3. Click ‘OK’ in the Hatch dialog box to apply the fill.

Step 6: Editing the Hatch (if needed)

Should you need to modify the hatch after it has been applied, follow these steps:

  1. Use the Hatch Edit command by typing HATCHEDIT into the command line.
  2. Select the hatch pattern to start editing.
  3. You can change the color, scale, or pattern type according to your needs.

FAQs

1. Can I apply different patterns to different rectangles in the same drawing?
Yes, each rectangle can have its own hatch pattern and color. Simply follow the fill process for each shape individually.

2. What should I do if my hatch isn’t displaying correctly?
Check the layer settings to ensure the hatch layer is visible and not frozen. Additionally, verify that the "Apply Solid Fill" option is enabled in the display settings under Options.

3. Is there a faster way to fill multiple shapes with the same hatch?
Yes, you can use the Hatch command and select multiple areas at once if they are all closed shapes. This saves time and maintains consistency throughout your drawing.

About the author

Wei Zhang

Wei Zhang

Wei Zhang is a renowned figure in the CAD (Computer-Aided Design) industry in Canada, with over 30 years of experience spanning his native China and Canada. As the founder of a CAD training center, Wei has been instrumental in shaping the skills of hundreds of technicians and engineers in technical drawing and CAD software applications. He is a certified developer with Autodesk, demonstrating his deep expertise and commitment to staying at the forefront of CAD technology. Wei’s passion for education and technology has not only made him a respected educator but also a key player in advancing CAD methodologies in various engineering sectors. His contributions have significantly impacted the way CAD is taught and applied in the professional world, bridging the gap between traditional drafting techniques and modern digital solutions.