Issues can arise that impact the creation and display of hatch objects. This article focuses on the following situations that might occur when creating or displaying hatch objects:
It can be frustrating to be informed that a valid hatch boundary wasn't found when trying to create a hatch object. The most common reasons why a valid hatch boundary might not be found are:
All objects being used to define the boundary of a hatch object must be visible in the current drawing view. If all objects are not in the current drawing view, do the following:
You can do one of the following:
When defining a hatch boundary, there can't be any gaps in the geometry. Finding gaps in the geometry can be challenging, but AutoCAD will assist in identifying potential gaps between the objects you're trying to fill with a hatch when possible.
When AutoCAD doesn't have any suggestions, you can try one of the following to help handle any gaps between the objects:
Hardware acceleration is used to improve the display of on-screen graphics and perform calculations related to hatch boundary detection. An outdated graphics card driver can result in poor performance, display issues, and even problems with the calculation of hatch boundaries. If you feel this might be the cause of your problem, try installing a certified graphics card driver for AutoCAD (https://www.autodesk.com/autocad-graphicscard) or the latest driver for your graphics card from the manufacturer.
Have you hatched an area only for the pattern to not be displayed? If so, it could be the result of a pattern being too dense or the dash size being too small resulting in a large number of lines in the pattern. If this happens, you may need to adjust the Maximum Hatch display setting or the scale assigned to the hatch object. By default, the Maximum Hatch display setting is set to a value of 100,000 which in most cases is ideal. However, if you are seeing this issue with your drawings, the value of the Maximum Hatch setting might need to be increased. The Maximum Hatch setting can be changed with the MaxHatch environment variable.
You can change the Maximum Hatch display setting by following one of these methods:
The syntax of the setenv AutoLISP function is as follows:
(setenv "MaxHatch" "<value>")
For example, to increase the value from 100,000 to 200,000 lines allowed in a single hatch pattern, you would enter the following at the Command prompt:
(setenv "MaxHatch" "200000")
For example, to increase the value from 100,000 to 200,000 lines allowed in a single hatch pattern, you would perform the following at the Command prompt:
You can change the scale of a hatch object by doing the following:
Other reasons why your hatch might not be visible or displayed in your drawing can include:
To turn Fill Mode on, do the following:
There might be times when the hatch preview doesn't match the appearance of the final hatch object. This can happen because AutoCAD performs fewer calculations when generating the hatch preview than when it is creating the final hatch object. This is done to keep the preview fast and responsive.