Creating a custom hatch pattern in AutoCAD gives you precise control over how areas are shaded, allowing you to match specific industry standards or create unique visual identifiers for your designs. This process involves defining a simple text file that describes the pattern geometry, which AutoCAD then interprets and loads into your drawing environment. By mastering this technique, you move beyond basic drafting into the realm of detailed documentation and personalized presentation. The ability to generate these fills dynamically ensures that your drawings remain editable and maintain consistent density regardless of the scale of your view.

Unlike static images, a custom pattern is a dynamic definition stored in a PAT file that interacts with the geometry of your blocks and boundaries. This means if you stretch or rotate the boundary, the hatch pattern updates automatically to fit the new shape perfectly. The flexibility of this system allows you to define lines, dots, and dashes in specific sequences and spacings. Understanding the structure of these text-based definitions is the key to unlocking unlimited customization for your technical drawings.

Understanding the Pattern Definition File
The foundation of any custom hatch lies in the pattern definition file, typically named acad.pat or custom.pat, depending on whether you are modifying the standard library or adding a new one. These files contain the raw code that tells AutoCAD how to render the visual fill, specifying the exact placement and angle of each line element. You can view and edit these files with any basic text editor, making the process accessible without needing specialized software beyond AutoCAD itself.

Each line within a PAT file follows a strict syntax that dictates the pattern's behavior, including its origin point, alignment, and dash sequence. The definitions separate static patterns, which maintain their orientation regardless of the object angle, from adaptive patterns, which rotate to align with the boundary edges. Grasping the difference between these pattern types is essential for achieving the desired result in your specific drafting context.
Static Pattern Logic

Static patterns are defined using a base coordinate system that does not change relative to the object's rotation. In this method, the pattern maintains its fixed grid structure, which is ideal for representing materials like grid paper or specific tiling layouts. The definition starts with a `*` followed by the pattern name, then specifies the pattern type as "ANSI" or "ISO" depending on the standard you are following.
For example, a simple grid pattern requires you to define the major line spacing and the sequence of drawing moves. You specify the angle of the lines and the exact pixel or unit length for the dashes and spaces. This predictability makes static patterns reliable for technical drawings where alignment to a Cartesian grid is necessary.
Adaptive Pattern Logic

Adaptive patterns, on the other hand, are dynamic and respond to the geometry of the boundary they fill. These are particularly useful for hatches that need to conform to complex shapes, such as contours or structural elements rotated in space. The pattern definition for these types usually includes the code `INST` or `DEFCLO` to indicate how the lines should terminate at the edges.
When defining an adaptive pattern, you focus on the vector direction and length of the line sequence between boundary crossings. This allows the pattern to flow seamlessly around curves and angles, providing a professional and cohesive look to complex shaded areas in your design.
The Step-by-Step Creation Process

To create a custom hatch pattern in AutoCAD, you must first open the PAT file associated with your current profile. Locate the file within your support folder, copy the structure of existing definitions, and paste your new code at the end of the file. Saving the file triggers a reload of the pattern library, making your new definition available the next time you access the hatch tool.
Testing your new pattern is a critical step that involves drawing a simple boundary, such as a rectangle or circle, and applying the hatch using the Custom option. If the pattern appears misaligned or the spacing is incorrect, you will need to adjust the numerical values in your PAT file. This iterative process of definition, application, and refinement ensures the final pattern integrates smoothly into your workflow.




















Defining the Dash Sequence
The visual appearance of your hatch is determined by the dash sequence, which lists the lengths of the drawn lines followed by the lengths of the skipped spaces. A sequence of `1, 2` creates a dense dotted effect, while a sequence like `5, 2, 1, 2` produces a dashed line with intermittent gaps. Adjusting these numbers allows you to control the density and rhythm of the fill.
You must also consider the angle of the pattern lines, which is specified in degrees. A value of 0 creates horizontal lines, while 90 creates vertical lines. Testing different angles in conjunction with your dash sequence helps you find the optimal visual balance for representing the specific material or structural component.
Adjusting Pattern Scaling
Scaling is one of the most common challenges when creating custom patterns, as the default units might be too large or too small for your drawing scale. Fortunately, AutoCAD handles this through the pattern definition itself. By reducing the numbers in the dash sequence, you increase the density of the hatch, effectively scaling the pattern up visually.
It is important to remember that the pattern definition is unitless until applied to a drawing. Therefore, a sequence of `1, 1` will look very different in a drawing plotted in millimeters versus inches. Always verify the scale of your pattern in the context of your specific layout to ensure readability and adherence to dimension standards.
Best Practices and Organization
Maintaining an organized library of custom patterns requires a consistent naming convention within the PAT file. Instead of generic names like "Pattern1," use descriptive titles such as "Brick-Course-60" or "Concrete-Fine-Diagonal." This practice makes it easy to locate the correct fill when working on large projects with dozens of custom definitions.
Backing up your custom PAT file is a simple but vital step in protecting your work. Since the file contains all your custom definitions, losing it means recreating every pattern from scratch. Store a copy in a secure cloud location or on an external drive to ensure continuity across different computers or after software updates.
Finally, sharing your custom patterns with colleagues can significantly boost team efficiency. By distributing a single PAT file, you ensure that everyone on a project uses identical hatch styles, maintaining visual consistency across all drawings and documentation sets.
Experimenting with these definitions allows you to tailor the software to the specific demands of your projects, turning a standard tool into a unique extension of your design intent.