AutoCAD come with default hatch patterns. But you always need to use custom hatch. There are many resources to download custom hatch pattern. But if you can’t find it anyway, it’s time to create your own custom hatch.
Creating simple hatch is quite easy. You can check this tutorial if you want to know how it’s done. However, there is an easier way if you need to create custom complex hatch pattern. We can use AutoLISP program to do that.
Contents of this Article
This free AutoLISP program is available on Cadalyst. It is a very convenient way to create a pattern graphically. Once you load the LISP program there will be two new commands available.
This command will create 1×1 rectangle at coordinate 0,0. You need to draw what you want as pattern here. Only lines and points are accepted. I tried to copy object to this location and try to convert it. Apparently this method doesn’t work well. You need to draw new entity.
After you finish creating the objects, you can run this command. Select objects within the rectangle then save the pattern file.
This is a pattern I created in few seconds.
Advertisement - this article continues below
Sometimes it doesn’t work well when you have a very complex pattern. You may try to simplify it and try to create it again. If it still doesn’t work, it looks like you need to try other alternatives.
To download Hatch Maker
This AutoLISP command is available on Cadalyst website. Download hatch maker here.
Get pattern from an AutoCAD drawing
Now what if you receive a drawing with custom hatch pattern inside it? You want to use the hatch pattern, but you don’t have the pat file. How do you create the pattern?
You can just grab the hatch definition and save the pattern to your local drive, thanks to Tee Square Graphics. They wrote a LISP program that can generate the .pat file.
You can get the GETPAT LISP code here. It’s a raw code, you need to save it to lisp file before you can use it.
Saving and using AutoLISP program
If you don’t know how to save and load LISP program read how you can do it here.
So what do you think? Are they useful?