How to create new custom hatch patterns in AutoCAD
By Stephen Carlton
How to create new custom hatch patterns in AutoCAD and where to save them for use. AutoCAD comes with a large variety of patterns, but you can also create your own.
The patterns are stores in a file extension of ".pat". Here are some key points to follow:
- You can only put one hatch pattern in a custom .pat file
- The filename and pattern name must be the same
- You can insert comments in your .pat file after semicolon
- You must leave an empty row after the end of the last line of the hatch definition.
*pattern-name[, description] angle, x-origin,y-origin, delta-x,delta-y [, dash1, dash2, ...]
Hatch-pattern definitions have a few rules:
- The description is optional; if you include one, precede it with a comma.
- Add the dash specifications only for noncontinuous lines.
- You can have more than one definition line (the second line in the syntax above).
- Each definition line can be no more than 80 characters.
- You can include a maximum of six dash specifications (which include spaces and dots).
- You can add spaces in the definition lines for readability.
- Angle - defines the angle lines in the hatch pattern.
- X-origin - Specifies the X coordinate of the base point of the hatch pattern.
- Y-origin - Specifies the Y coordinate of the base point of the hatch pattern.
- Delta-x - Specifies the offset of successive lines. This applies only to dashed lines and is measured along the direction of the lines.
- Delta-y - Specifies the distance between lines, measured perpendicular to the direction of the lines. This applies to both continuous and dashed lines.
- Dash - defines a noncontinuous line using the same system as linetype definitions: positive for a dash, negative for a space, and 0 for a dot.
[computer name] > System > Users > [select user] > AppData > Roaming > Autodesk > AutoCAD 20xx > Rxx.x > enu [or other language installed] > Support > save file here
Reference: Autodesk Knowledge Network