AutoCAD Workflow

Adding Custom Linetypes and PAT Files in AutoCAD for Mac

AutoCAD for Mac offers powerful drafting capabilities, but users often need to extend its functionality with custom linetypes and hatch patterns. Whether you’re working on architectural details, civil engineering plans, or mechanical drawings, creating and using custom linetypes (.lin files) and hatch patterns (.pat files) can significantly enhance your workflow and design clarity. This guide walks you through the process of adding and using custom linetypes and PAT files in AutoCAD for Mac.


Understanding Linetypes and Hatch Patterns

  • Linetypes define the appearance of lines—dashed, dotted, centerlines, or complex patterns combining lines, text, and shapes.
  • Hatch Patterns (stored in .pat files) fill enclosed areas with predefined or custom patterns, useful for representing materials, sections, or zones.

Both rely on text-based definition files that AutoCAD reads during startup or when manually loaded.

See also  AutoCAD Mac Fatal Error: Unhandled Access Violation – How to Fix It

Part 1: Adding Custom Linetypes (.lin Files)

Step 1: Locate the Support Folder

AutoCAD for Mac stores linetype files in a designated support folder. To find it:

  1. Open AutoCAD for Mac.
  2. Type OPTIONS in the command line and press Enter.
  3. Go to the Files tab.
  4. Expand Support File Search Path.
  5. Note the listed directories—these are where AutoCAD looks for .lin files.

Common default locations include:

~/Library/Application Support/Autodesk/AutoCAD 20XX/Rxx.x/enu/Support/

(Replace “20XX” and “Rxx.x” with your version number.)

Step 2: Prepare Your .lin File

Custom linetypes are defined in a .lin file using a specific syntax. Example of a simple dashed linetype:

*DASHDOT, Dash dot - - . - - . - - . - - .
A,12.7,-6.35,0,-6.35

For complex linetypes with text or shapes, additional definitions are required.

Tip: You can create a new .lin file in any plain-text editor (like TextEdit in plain-text mode or VS Code).

Step 3: Place the .lin File in the Support Folder

  1. Save your custom .lin file (e.g., MyLinetypes.lin) in one of the support directories listed in Step 1.
  2. Restart AutoCAD to ensure the file is recognized.

Step 4: Load and Use the Linetype

  1. In AutoCAD, type LINETYPE (or LT) and press Enter.
  2. In the Linetype Manager, click Load….
  3. Scroll through the list—you should now see your custom linetype(s).
  4. Select it and click OK.
  5. Assign the linetype to layers or objects as needed.

Note: If your linetype includes shapes or fonts, ensure those resources are also in the support path.


Part 2: Adding Custom Hatch Patterns (.pat Files)

Step 1: Locate the Support Folder for Hatch Patterns

Hatch pattern files (.pat) are also stored in AutoCAD’s support folders. Use the same method as above (via OPTIONS > Files > Support File Search Path) to identify valid directories.

Step 2: Create or Obtain a .pat File

Hatch patterns use a specific format. A simple diagonal line pattern might look like:

*MYDIAG, My custom diagonal hatch
45, 0,0, 0,.125

You can:

  • Write your own .pat file using a text editor.
  • Download custom .pat files from online resources.
  • Extract patterns from existing drawings.

Pro Tip: Keep custom .pat files separate from default ones (e.g., name yours CustomHatches.pat) to avoid conflicts during updates.

Step 3: Install the .pat File

  1. Copy your .pat file into one of the support folders.
  2. Restart AutoCAD.
See also  The AutoCAD Mac Interface Explained (2025 Edition)

Step 4: Use the Custom Hatch Pattern

  1. Start the HATCH command.
  2. In the Hatch Creation tab, click the Pattern drop-down.
  3. Select Custom from the Type list.
  4. Your custom pattern should now appear in the pattern list.
  5. Choose it and apply as usual.

If your pattern doesn’t appear, double-check:

  • The .pat file is in a valid support folder.
  • The file uses correct syntax (no extra spaces or invalid characters).
  • AutoCAD was restarted after placing the file.

Troubleshooting Tips

  • Linetypes not loading? Ensure your .lin file uses Unix-style line endings (LF), not Windows (CRLF). TextEdit may add formatting—use a code editor like BBEdit or VS Code to avoid this.
  • Hatch pattern missing? Verify that the pattern name in the .pat file matches what you expect, and that there are no duplicate names.
  • Performance issues? Large .pat or .lin files can slow startup. Keep only necessary custom files in the support folder.

Frequently Asked Questions (FAQ)

Q1: Can I use Windows .lin or .pat files directly in AutoCAD for Mac?

A: Yes, the syntax for .lin and .pat files is the same across AutoCAD platforms. However, ensure the file uses plain-text encoding (UTF-8 or ASCII) and Unix-style line endings (LF). Files created on Windows may contain hidden formatting or CRLF line breaks that can cause issues—open and re-save them in a Mac-compatible plain-text editor like TextEdit (in plain-text mode) or VS Code.


Q2: Do I need to restart AutoCAD every time I add a new .lin or .pat file?

A: Not always. While restarting guarantees AutoCAD detects new files, you can often load them without restarting:

  • For linetypes: Use the LINETYPE command → Load… → your custom .lin file will appear if it’s in a support folder.
  • For hatch patterns: The HATCH command only scans .pat files at startup, so a restart is usually required for new patterns to appear in the list.
See also  Managing autosave frequency in AutoCAD for Mac to improve speed

Q3: Where should I store my custom files to avoid losing them during an AutoCAD update?

A: Avoid placing custom files directly in the main AutoCAD installation folders. Instead:

  1. Create a dedicated folder like ~/Documents/AutoCAD/CustomSupport.
  2. Add this folder to AutoCAD’s Support File Search Path via OPTIONS > Files > Support File Search Path > Add.
    This way, your files remain safe and accessible across updates.

Q4: Why does my complex linetype with text appear as a continuous line?

A: Complex linetypes that include text or shapes require the referenced font or shape file (.shx) to be present in a support folder. If AutoCAD can’t find the required shape or font, it defaults to a continuous line. Verify that any .shx files referenced in your .lin definition are installed and accessible.


Q5: Can I share my custom linetypes and hatch patterns with colleagues using AutoCAD for Mac or Windows?

A: Yes! Since .lin and .pat files are platform-agnostic, you can share them across Mac and Windows users. Just ensure:

  • All referenced resources (like .shx fonts) are also shared if used.
  • Recipients place the files in their respective support paths.
  • File names don’t contain special characters that may cause compatibility issues.

Q6: How do I create a hatch pattern that scales correctly in different viewports?

A: Hatch patterns in .pat files use absolute units by default. To make them scale with the drawing or viewport:

  • Use the Annotative property when applying the hatch (check Annotative in the Hatch Creation tab).
  • Alternatively, define your pattern using relative spacing if you control the scale manually, but note that standard .pat files do not support true annotative definitions—you’ll need to manage scale per viewport.

Q7: Is there a limit to how many custom linetypes or hatch patterns I can add?

A: There’s no hard limit, but performance may degrade if you load hundreds of patterns or very complex linetypes. Keep your .lin and .pat files lean—only include what you actively use—and organize them into separate files for easier management.


Conclusion

Custom linetypes and hatch patterns empower AutoCAD for Mac users to meet project-specific standards and improve drawing clarity. By placing your .lin and .pat files in the correct support directories and loading them through AutoCAD’s built-in managers, you can seamlessly integrate custom styles into your workflow.

With these steps, you’re ready to enhance your AutoCAD for Mac experience with tailored linework and fills that reflect your professional requirements.


Note: Always back up your custom files before updating AutoCAD, as support folders may be reset during major version upgrades.

About the author

Rachid Khouri

Rachid Khouri

I’m Rachid Khouri, a CAD engineer, developer, and Autodesk Authorized Author with more than 30 years of experience using and teaching AutoCAD.
I’ve worked as a draftsman, CAD manager, and trainer for design offices and companies in Canada, and since 1999, I’ve been sharing my knowledge through in-person and online training.