• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
You are here: Home / AutoCAD / Create your own AutoCAD pattern easily

Create your own AutoCAD pattern easily

August 27, 2014 by Edwin Prakoso 17 Comments

In this Article...

  • Hatch Maker
    • DRAWHATCH
    • SAVEHATCH
    • To download Hatch Maker
  • Get pattern from an AutoCAD drawing
  • Saving and using AutoLISP program

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.

Engineer drawing

Hatch Maker

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.

DRAWHATCH

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.

hatch draw area

SAVEHATCH

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.

Hatch result

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?

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

Filed Under: AutoCAD Tagged With: autolisp, Hatch, pattern

5 1 vote
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

17 Comments
Inline Feedbacks
View all comments
Bebe
Bebe
4 years ago

Can I get the free AutoLISP program? Where is the Cadalyst?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Bebe
4 years ago

Hi Bebe,
The link to get the AutoLISP are provided in the article.

0
Reply
Juan Carlos
Juan Carlos
7 years ago

Autocad Architecture 2016, I can’t create patterns with dash lines,
I did check HPlinetype to already

0
Reply
Sebastian
Sebastian
8 years ago

Hey there,
im using Bricscad and square things works as a pattern but if i trie to have something round as a pattern it only shows some lines. When i save the round things there is often a message called: ” Line with invalid angle 276.521043º omitted.” What can i do?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Sebastian
8 years ago

Hi Sebastian,

I’m not familiar with Bricscad. I suggest you post the question in their support forum here: https://forum.bricsys.com/

0
Reply
Mônica Fischer
Mônica Fischer
Reply to  Sebastian
7 years ago

Hello, I had the same problem. One of the instructions of Lisp is that Lines must be drawn within 0.0 to 1.1 and lie on a 0.01 grid. So I drew a grid 0.01 x 0.01 inside the Lisp square, and made all my lines of my new hatch, start and end on one of the grid dots. It worked!

0
Reply
Sunil varghese
Sunil varghese
9 years ago

how to convert solid convert to hatch pattern

0
Reply
Forest
Forest
9 years ago

Hi Edwin,

I am trying to create a hatch pattern for gyp. bd. to use in lieu of drafting detail components in Revit by assigning the hatch as a material cut pattern. I can create and import the hatch fine, however. I want this particular hatch to only be a dot filled region (3/8″) with lines on both sides (1/8″ offset). How can I restrict or assign this hatch to only occur in a 5/8″ vertical space? Is this possible? Hoping to to this with multiple materials and eliminate some of the detail component use. Any input or advice you have is greatly appreciated!

Thanks!
Forest

AutoCAD & Revit 2016

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Forest
9 years ago

Hi Forest,

I don’t think you can achieve this automatically in Revit. However, you can create a visibility parameter for that detail component. If you create it as instance parameter, you can uncheck it from the Properties Palette to hide it.

0
Reply
Derek
Derek
9 years ago

Hi Edwin,

I couldn’t select anything after I get into savehatch command.

I’m using autocad 2016. I wonder if that is the reason

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Derek
9 years ago

I tried it on my computer, and it works fine on AutoCAD 2016.
Did you create the hatch using line or point only? Because other objects types will not work.

0
Reply
Charlie
Charlie
10 years ago

Is there a way to create text hatch pattern. I need this hatch to show as a repeated text to cover an area.

see below examples of “ENGINEERING, -IT.

*ZIGZAG, Staircase effect
0, 0,0, .125,.125, .125,-.125
90, .125,0, .125,.125, .125,-.125

;;
;; User Defined Hatch Patterns
;; Add any hatch patterns that you define to this section of
;; the file to ensure that they migrate properly when
;; upgrading to a future AutoCAD version. If duplicate hatch
;; patterns are found in this file, items in the User Defined
;; Hatch Patterns section take precedence over patterns that
;; appear earlier in the file.

*ENGINEERING, ENGINEERING HATCH
0, 0,0, “ENGINEERING”
*IT, IT HATCH
0, 0,0, -IT

;;

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Charlie
10 years ago

Charlie,

Unfortunately you can’t create hatch pattern like that. However, you can create hatches by straight lines to create the text.

0
Reply
the_mini_guy
the_mini_guy
10 years ago

I have battled with hatches for years. None if the tools are any good because you can’t set the unit scale. When you have to manage both Imperial and Metric you cant use the same pat file because one will require a hatch scale of 0.024 & the other will need 21. Then when you use annotative scales and chane the scale to do detailing you hit a wall if solid hatch and they are useless. I wish autodesk woulf resolve this floor in the product.

0
Reply
Stan Overby
Stan Overby
10 years ago

This program really comes in handy because my company deals with client prototype drawings and we do not get all of the hatch pattern files, fonts, etc. from them. How can i edit this so that i can change the location of where the pat file is saved to? How hard would it be to save to a network drive based on the default hatch directory listed in preferences? If that is too difficult could i have the user select the location through a dialog box?

0
Reply
Laurence Wynn
Laurence Wynn
11 years ago

Is it not easier to just use the “SUPER HATCH” command that has been an Autocad command since 2007 ?
there is also a button that can be inserted in to a toolbar.

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Laurence Wynn
11 years ago

SUPERHATCH is very useful… However, it’s part of express tools. It means, it’s not available for AutoCAD LT. It consumes much resources too. For a complex drawing, creating hatch pattern is preferred.
And .pat file is not only used by AutoCAD. Many other apps also use it.

0
Reply
wpdiscuz   wpDiscuz

Featured

AutoCAD customization: 5 articles to learn about CUI

AutoCAD CUI customization roundup. If you want to customize AutoCAD interface, here you can learn how you can create partial customization file, create command, working with ribbon, toolbar and menu, and more cool things!

Recent Articles

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available

Advertisement

New on CADnotes

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available
  • Autodesk Forma Design Contest
  • Revit 2025: Toposolid Enhancements

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2025 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz