AutoCAD

How To Create A Pat File In AutoCAD?

Understanding PAT Files in AutoCAD

PAT files are essential in AutoCAD for creating custom hatch patterns. These files enable users to define unique shading and texture styles that can add depth to drawings. To work effectively with PAT files, understanding their location and management in the software is crucial.

Locating the Support Folder for PAT Files

To create your own PAT file, you first need to ensure it is stored in the correct directory. The default support folder is where AutoCAD searches for hatch patterns. Follow these steps to locate it:

  1. Open AutoCAD.
  2. Type OPTIONS in the command prompt and press Enter.
  3. Navigate to the Files tab in the Options dialog.
  4. Look for the Support File Search Path; the first folder listed is typically where you should place your PAT file.

Creating a Custom Hatch Pattern

Once the folder is identified, the next step is to create your custom PAT file. Here’s how to do it:

  1. Open a plain text editor such as Notepad or any code editor you prefer.
  2. Use the following format to define your hatch pattern:

    *PatternName, Description
    0, 0, 0, 1.0
    3, 1.0, 0.0, 2.0

    • Replace PatternName and Description with your chosen names.
    • The numbers following define the spacing and angles of your hatch pattern.
  3. Save the file with a .pat extension (e.g., MyCustomHatch.pat).

Adding the PAT File to AutoCAD

Now that your PAT file is created, you need to incorporate it into AutoCAD:

  1. Move or copy your newly created PAT file into the support folder identified earlier.
  2. Restart AutoCAD to ensure the software recognizes the new file.
  3. Activate the Hatch command by typing HATCH into the command line.
  4. In the Hatch dialog, navigate to the Custom tab to find your new hatch pattern. Select it to apply it to your drawing.

Accessing Custom Hatch Patterns

If the new hatch pattern does not appear, you may need to adjust AutoCAD settings:

  1. Start AutoCAD and type OP for the Options dialog.
  2. Under the Files tab, locate the Support File Search Path.
  3. If necessary, add the folder where your custom PAT file resides by clicking Add and browsing to the location.

How to Export a PAT File from AutoCAD

If you need to share or back up your custom PAT file, you can export it easily:

  1. Click on the File tab and select Export Options.
  2. Choose Export Setups DWG/DXF to access setup configurations.
  3. Click on the Patterns tab to customize the settings for your hatch patterns, allowing for your PAT file to be saved or exported.

Utilizing Hatch Patterns in Your Drawings

Creating and using hatch patterns enhances visual representation in AutoCAD projects. To apply a hatch:

  1. On the Home tab, locate the Draw panel and click on Hatch.
  2. Choose the hatch type from the Properties panel.
  3. Select your pattern from the Pattern panel.
  4. Specify how you want to delineate the hatch boundary in the Boundaries panel.

FAQ

1. Can I edit an existing hatch pattern?
Yes, you can edit an existing PAT file in a text editor. Just modify the entries, save the changes, and re-import the file in AutoCAD.

2. Are there default hatch patterns included with AutoCAD?
Yes, AutoCAD comes with a variety of default hatch patterns that can be accessed in the Hatch command without needing to create new ones.

3. What should I do if my custom hatch pattern isn’t showing up?
Ensure that your PAT file is in the correct support directory and the pattern type is set to user-defined in the hatch settings. Restarting AutoCAD may also refresh the pattern list.

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.