Subject: Specifying a custom library hatch pattern

You can use custom external hatch pattern libraries (.pat files), such as a standard library used in your office, customized patterns, and libraries available from vendors or standards organizations. The .pat files can be in any location.

Each .pat file contains one hatch pattern, and the filename must match the name of the hatch pattern. The hatch pattern definition is as follows:


angle, x-origin, y-origin, delta-x, delta-y [, dash1, dash2, …]

Alternatively, you can add a custom hatch pattern to icad.pat and use predefined hatch patterns described previously instead of a custom library pattern below.

To use a custom library pattern

   1   Do one of the following:

   Copy the custom pattern file (.pat file) to the Patterns folder where you installed CADdirect. To check where CADdirect searches for pattern files, choose Tools > Options, click Paths/Files, and check the folders listed for Hatch Patterns.

   Choose Tools > Options, click Paths/Files, and add the location of the custom pattern file (.pat file) to the folders listed for Hatch Patterns.

   2   Do one of the following to choose Hatch ():

   On the ribbon, choose Home > Hatch (in Draw) or Draw > Hatch (in Draw).

   On the menu, choose Draw > Hatch > Hatch.

   On the Draw toolbar, click the Hatch tool.

   Type bhatch and then press Enter.

   3   Click the Hatch tab.

   4   In Type, choose Custom.

   5   In Custom Pattern, select a pattern from the list. You can also click [...] to open the Hatch Patterns dialog box and select a pattern from the Custom tab.

   6   Specify any of the following options:

   Color In the first (left) color list, select the color of the hatch lines. In the second (right) color list, select the color of the hatch background.

   Angle Enter the angle of the hatch pattern relative to the x-axis in degrees (1-360). The default angle is clockwise; you can change the angle by entering a numerical value.

   Scale Enter the scale factor as a percentage of the default. Changing the scale factor makes the hatch pattern larger or smaller than the default size.

   Related to paper space Select to scale the hatch pattern relative to the units defined for paper space. (Available for named layouts.)

   7   In Hatch Origin, select whether to draw the hatch pattern from the default origin or a new origin. If you choose to specify a new origin, do one of the following:

   Click () to pick the new origin directly in the drawing.

   Select Default to Boundary Extents to set the origin to the top left, top right, bottom left, bottom right, or center of the boundary extents.

A new origin can be saved as the new default.
To store the new hatch origin as the default, select Store as Default Origin. The hatch origin will be saved in the HPORIGIN system variable.

   8   To continue, specify entities or areas for hatching. For details, see Specifying enti­ties or areas for hatching and gradients.

© Copyright 2022. BackToCAD Technologies LLC. All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. Print2CAD, CADdirect,, CAD Direct,, CAD Bot, are Trademarks of BackToCAD Technologies LLC. DWG is the name of Autodesk’s proprietary file format and technology used in AutoCAD® software and related products. Autodesk, the Autodesk logo, AutoCAD, DWG are registered trademarks or trademarks of Autodesk, Inc. All other brand names, product names, or trademarks belong to their respective holders. This website is independent of Autodesk, Inc., and is not authorized by, endorsed by, sponsored by, affiliated with, or otherwise approved by Autodesk, Inc. The material and software have been placed on this Internet site under the authority of the copyright owner for the sole purpose of viewing of the materials by users of this site. Users, press or journalists are not authorized to reproduce any of the materials in any form or by any means, electronic or mechanical, including data storage and retrieval systems, recording, printing or photocopying.