Training   Course Outlines   AutoCAD – The Basics   AutoCAD – Beyond the Basics   AutoCAD – 3D Basics   On‑Site Training   Virtual Classroom Training   CAD Bytes Webinars › Tutorials

Click the subscribe button below to receive CCAD's monthly email newsletter, which includes free tutorials, discounts and our class schedule!

CCAD's AutoCAD Tutorials

Dashed Line Hatch Patterns

This second Custom Hatch Pattern tutorial explores creating patterns consisting of dashed lines at a designated spacing. Make sure you have reviewed the Custom Hatch Pattern Introduction and the Continuous Line Hatch Pattern tutorials. Note that the >> indicates an action to be performed. Do not include the >> when typing the hatch pattern code.

Most complex hatch patterns contain dashed lines to make up the pattern. In this section you will learn to create a 4" x 4" floor tile pattern with a 1/2" grout line by using dashed lines.

Using Notepad or another text editor, start a new file.

The first line should read:

*4x4Tile, 4"x4" Floor Tile

Reminder: The * marks the beginning of a hatch pattern. 4x4Tile is the Pattern Name. The description is 4"x4" Floor Tile.

Adding Horizontal Dashes

dashed hatch patternDashed lines are created by adding a sequence of numbers at the end of the Pattern Line. Positive numbers create dashes, while negative numbers create spaces. There is no limit to the number of dashes and spaces in a Pattern Line.

Add the first Pattern Line below to your pattern file.

0, 0,0, 0,4.5, 4.0,-0.5

This Pattern Line will create dashed lines 4 units long, with a space of 0.5. The Pattern Line will repeat at 4.5 unit intervals and the Pattern Line originates from 0,0 at an angle of 0.

Save your file to a folder on the AutoCAD Support File Search PathThe easiest way to locate a folder on the AutoCAD Support File Search Path is to execute the OPTIONS command, select the Files tab and expand the AutoCAD Support File Search Path node. with the name 4x4Tile.pat.

dashed hatch patternAdd the second Pattern line below to your pattern file.

0, 0,4, 0,4.5, 4.0,-0.5

This Pattern Line will also create dashed lines 4 units long, with a space of 0.5, but the origin is at 0,4. This will form the top of each tile.

Save your library file and try out the revised hatch pattern.

Adding Vertical Dashes

dashed hatch vertical linesAdd the first vertical dashed Pattern Line as shown below to your text file.

90, 0,0, 0,4.5, 4.0,-0.5

This will produce a pattern of lines at an angle of 90. The pattern will begin at 0,0. The spacing between the lines (Delta‑Y) is 4.5. The dashed line sequence is the same as the horizontal dashes.

This will be the left edge of the floor tile.

Save your Library file and try out the revised hatch pattern.

Finally, you can add the second vertical dashed Pattern Line to your pattern file.

90, 4,0, 0,4.5, 4.0,-0.5

Just like the horizontal dashed lines, the origin of the second vertical Pattern Line is shifted.

Save your Library file and try out the revised hatch pattern.

 

The next tutorial in this series will explore Delta‑X Offset hatch patterns. Once you're finished with these tutorials, please review several important points in our Custom Hatch Pattern Summary.