AutoCAD

How to Make PAT File in AutoCAD?

Creating a PAT File in AutoCAD

To create a PAT file for use in AutoCAD, start by identifying a suitable location for your custom hatch patterns. This file type is essential for defining unique hatch patterns that you can use in your designs.

Step 1: Prepare Your Working Environment

Open AutoCAD 2025 on your computer. Ensure that you are familiar with the interface and locate the command line at the bottom, where you will input specific commands. It’s also advantageous to have a text editor open (like Notepad) for creating and editing your PAT file.

Step 2: Access the Options Dialog

Type OPTIONS into the command line, then press Enter. This action will open the Options dialog box, where you can configure various settings for AutoCAD.

Step 3: Set Up the Support File Search Path

Navigate to the Files tab within the Options dialog. Look for the section labeled Support File Search Path. You will need to add the directory where you plan to save your PAT files. Click on the Add button, and browse to your chosen folder. Once selected, click OK to confirm your changes and close the Options dialog.

Step 4: Create the PAT File

Open your text editor and begin writing the hatch pattern definition. A basic PAT file format consists of the following elements:

  • Hatch Pattern Name: Choose a unique name for your pattern at the top of the file.
  • Pattern Definition: Specify the angle, scale, and spacing of lines or shapes that will create the hatch pattern. Format these specifications in accordance with AutoCAD syntax.
  • Example: A simple pattern may include entries like the following:
  •     *MyHatchPattern, Example description
        0, .25, 0, 0
        90, .25, 0, 0
        

Save this text file with a .pat extension in the folder you designated earlier.

Step 5: Load the PAT File into AutoCAD

Return to AutoCAD and initiate the Hatch command by typing HATCH in the command line. In the interface, you will find an option to select hatch patterns. Open the drop-down menu to locate your custom pattern. If it doesn’t appear, check that the Support File Search Path includes the directory where your PAT file is stored.

Step 6: Test the New Hatch Pattern

Once loaded, select your new hatch pattern and begin applying it to areas in your drawing. Ensure the results meet your expectations, and make adjustments to the PAT file if necessary by editing it in the text editor.

FAQs

1. What type of information can I include in a PAT file?

A PAT file can include various parameters such as pattern names, angles, line spacing, and repetitions that define how the hatch should appear in AutoCAD.

2. Can I transfer my PAT files to another system?

Yes, you can easily transfer PAT files. Just copy the files from the designated folder and paste them into the corresponding folder on the new system, ensuring the Support File Search Path is updated accordingly.

3. What should I do if my newly created hatch pattern isn’t appearing in AutoCAD?

Check the Support File Search Path to ensure it points to the folder containing your PAT file. Additionally, ensure that the file is correctly formatted and that AutoCAD has been restarted after making changes to the path.

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.