Navigation
 
AutoCAD Tutorial

AutoCAD 2004 Customization Tutorial: Custom Hatch Patterns, Part 2

June 25, 2003

Defining complex hatch patterns needs patience and a basic knowledge of mathematics. Here you will define a hatch pattern that consists of 12 line families. If you are not familiar with hatch pattern definition and/or linetypes, please read the relevant tutorial first:

AutoCAD 2004 Customization Tutorial: Simple Linetypes
AutoCAD 2004 Customization Tutorial: Custom Hatch Patterns, Part 1

1. Download the following files:

R16_complex_hatches.dwg

R16_pattern_sketch.dwg

Note: If you are using an earlier release of AutoCAD download:

► R15_complex_hatches.dwg

► R16_pattern_sketch.dwg

2. Open R16_pattern_sketch.dwg. The file contains some lines that help us to define the hatch pattern [Figure 1].


Figure 1 - Click on image to enlarge

Notes:

  • Every line-family is located on a unique layer. You may isolate that layer to have a better view of the family that you are looking for.

  • The recommended start point of each line family is marked with a point. All the points are on layer 0. You may remove them by freezing this layer.

  • There are 4 vertical line families. The specifications of them are shown in the following table:

Family

Angle

x-origin

y-origin

x-offset

y-offset

Dash

Space

G01

90

0.25

1.25

0

2

0.5

1.5

G02

90

0.75

1.25

0

2

0.5

1.5

G03

90

1.25

0.25

0

2

0.5

1.5

G04

90

1.75

0.25

0

2

0.5

1.5

  • To locate the x-origin and y-origin coordinates use the ID command.

  • The DIST command can be used to extract y-offset, dash, and space values. Note that x-offset is always equal to 0 and y-offset is the offset distance between two adjacent lines in a family.

  • There are 4 horizontal line families. The specifications of them are shown in the following table:

Family

Angle

x-origin

y-origin

x-offset

y-offset

Dash

Space

G05

0

0.25

0.25

0

2

0.5

1.5

G06

0

0.25

0.75

0

2

0.5

1.5

G07

0

1.25

1.25

0

2

0.5

1.5

G08

0

1.25

1.75

0

2

0.5

1.5

  • There are 4 diagonal line families. The specifications of them are shown in the following table:

Family

Angle

x-origin

y-origin

x-offset

y-offset

Dash

Space

G09

45

0.75

0.75

0

1.41421

.707107

.707107

G10

45

1.75

0.75

0

1.41421

.707107

.707107

G11

135

1.25

0.75

0

1.41421

.707107

.707107

G12

135

2.25

0.75

0

1.41421

.707107

.707107

3. In command line type Notepad and press Enter twice. The Notepad window appears.

4. In Notepad window enter the proper text [Figure 2].


Figure 2

5. Save the file as "weave.pat" in AutoCAD search path.

Note: If you are not familiar with AutoCAD search path read the following tutorial:

AutoCAD 2004 Customization Tutorial: Search Paths

6. In AutoCAD open R16_complex_hatches.dwg.

7. Fill in the shown areas with the new hatch pattern [Figure 3]. Here the hatch scale is set to 0.5.


Figure 3
 

About the Author

Alireza Parsai is the founder of cadpanel.com. He is a mechanical engineer with more than 12 years experience with AutoCAD. Alireza is an Autodesk Authorized Author, the AutoCAD consultant for Al Khawarizmi Institute, a contributing editor for Augiworld magazine, a writer for CAD Digest, an instructor for AUGI Training Program, and an elected speaker for Autodesk University 2002. He has written 7 books in Farsi, 3 booklets in English, and more than 30 articles for different magazines and newsletters. You can reach him at alireza.parsai@cadpanel.com or visit his website www.cadpanel.com

More CAD Corner tutorials >>