How to install custom hatch patterns in AutoCAD

Autodesk Support

Feb 24, 2025


Products and versions covered


Issue:

How to install custom hatch patterns in AutoCAD using PAT files.

Causes:

Hatch configuration files are saved in PAT-files.

Solution:

Jump to sections:

 

Where to save the PAT-files (Windows)

Copy the custom PAT-files into the default Support folder (see below) that AutoCAD uses to find hatch patterns. Added PAT-files will cause hatches to be listed under the User Defined or Custom hatch menu within AutoCAD.

  • Windows 10/11
    • C:\Users\<user name>\AppData\Roaming\Autodesk\AutoCAD <version>\Rxx.x\<language>\Support
    Notes: 
    • Rxx.x stands for a specific AutoCAD release version:
      • <Release version>:  R24.1: 2022; R24.0: 2021; R23.1: 2020; R23.0: 2019
    • If you don't see the path above: The AppData and Application Data folders in the above paths are hidden folders
    • If there is no longer a PAT-file of an existing hatch used in a drawing, use the express tool SUPERHATCH to try and bring in the custom hatch pattern (not available in AutoCAD LT).
    • The default path is specified in the Support File Search Path listed under the Files tab in Options. It is usually the first one shown, pointing to the current user folder.

    If the preference is to keep custom hatch patterns as well as other customization in a different location, the folder(s) need to be added to the applications search path.

    To add a custom folder to the applications support file search paths

    1. Click the Application menu (the big "A" at the top left) Options.
    2. In the Options dialog box switch to tab "Files" and select node "Support File Search Path".
    3. Click "Add".
    4. Click "Browse...".
    5. In the "Browse for Folder"-dialog box, browse to and select the folder to add. Click OK.
    6. In the Options dialog box, click OK.

    Adding a custom path to the AutoCAD support search path

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


    *********************************************************************************************************************************

    Where to save the PAT-files (macOS)

    1. On any drawing, type the HATCH command. 
    2. Click the pull-down in the Hatch visor for Patterns and click Open Library.

    Open pattern library

    1. Click the drop-down arrow and select Add Patterns.

    Add patterns

    1. Browse to the location of the custom .pat files, select them, and click Open.

    select custom hatch pattern files

    1. Custom hatch patterns files will automatically be copied to the following locations:
    • AutoCAD for Mac 2016 and later: ~Home/Library/Application Support/Autodesk/AutoCAD <version>/Rxx.x/roaming/@<language>@/Support/Hatch Patterns
    • AutoCAD for Mac 2011 to 2015: ~Home/Library/Application Support/Autodesk/roaming/AutoCAD <version>/Rxx.x/<language>/Support
    Note: Rxx.x stands for a specific AutoCAD release version:
    • <Release version>:  R24.1: 2022; R24.0: 2021; R23.1: 2020; R23.0: 2019

    Note: Manually copying the PAT-files into the specified location will also work.

    Locating the AutoCAD support paths on the Mac Operating Systems Sierra and newer

    *********************************************************************************************************************************

    Loading a custom PAT-file

    1. Set system variable HPDLGMODE to 1.
      1. Enter HPDLGMODE into the command line.
      2. Type 1 and press Enter
    2. Enter command _HATCH. The "Hatch and Gradient"-dialog pops up.
    3. In selection list "Type" select "Custom". 
    4. In field "Custom Pattern" click the 3 dots-symbol.
    5. The dialog "Hatch Pattern Palette" pops up. Select in the left frame the specific PAT-file and in the right frame the specific hatch pattern. Click Ok.
    Hatch and Gradient>Hatch>Custom>Custom Pattern>Custom


    Note: If you don't see the PAT-file listed, ensure that the PAT-file is saved in one of the listed paths in the Support File Paths-node in tab "Files of the options. If it is still not listed, then the PAT-file is corrupted. 

    *********************************************************************************************************************************

    Editing PAT-files, using Notepad

    You may edit the default PAT-files that are installed with AutoCAD by using Notepad and adding your custom hatch pattern data at the end of the file. There are two files: acad.pat (British units) and acadiso.pat (metric units) (AutoCAD LT: acadlt.pat and acadltiso.pat), which are located as noted above. Although line spaces are not required between hatch patterns pasted into the file, a blank line must be placed after the last hatch pattern definition in a PAT-file. If a blank line is not placed after the last hatch pattern definition, the last hatch pattern definition will not be accessible. You can add comments by preceding text with two semicolons ( ;; ).

     
     
     

    Products:

    AutoCAD Products; AutoCAD LT for Mac; AutoCAD for Mac;


    Was this information helpful?


    Need help? Ask the Autodesk Assistant!

    The Assistant can help you find answers or contact an agent.


    What level of support do you have?

    Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

    View levels of support