Set the Default Hatch Pattern

Link to original Post at www.autocadtips.wordpress.com

If you have ever used a lot of hatch patterns in a drawing, you’ll understand the frustration of setting a default hatch pattern. Here’s the scenario: Say you use the “SOLID” hatch pattern almost exclusively, so when you are in the hatch pattern dialog box or ribbon you set this hatch pattern as current. The next time you use the hatch command, the “SOLID” hatch pattern is the current hatch pattern and you are happy… But then you close that drawing and come back to it at a later time. When you start the hatch pattern it reverts to the default of “ANSI31″ and you have to set the default to “SOLID” again…

This is a frustrating everyday annoyance that has only one solution. And that is to add a “setvar” for this in your acad.lsp file if you have one.

The system variable is called HPNAME (Hatch Pattern NAME)

Beware: When you change this variable from the command line, you are prompted to enter the NAME of the hatch pattern that you want to set as the default but you have no way of navigating to see what hatch patterns are available. So you have to know the name prior to starting the command.
This variable is not store in the registry or in the drawing. That’s why it always resets to ANSI31. So if you want to add a line to your acad.lsp file it will look like this:
(setvar “HPNAME”  “SOLID”)

If you do not plan on using an acad.lsp upon the startup of AutoCAD, the quickest way to set the default hatch pattern is not to use the command “HPNAME” in the command line. The fastest way to simply start the HATCH command or H <enter> and then select the hatch pattern from either the dialog box or ribbon.

About these ads

About AutoCAD Tips

I work for a large engineering firm and perform various CAD Administration duties and. I enjoy teaching/tutoring people in AutoCAD and seeing them enjoy using the program as much as I do. I hope that you find this blog a useful tool.
This entry was posted in Customization, Hatch. Bookmark the permalink.

2 Responses to Set the Default Hatch Pattern

  1. Michael says:

    Thank you. I just started using the hatch tool. When I clicked on it the first time, I got a full ribbon to customize my hatch. Now when I click on hatch, I only get the hatch defined earlier. How do I get the ribbon back?

    • AutoCAD Tips says:

      This is a good topic as many are going back and forth trying the various ribbon vs dialog box versions of commands.
      I made a post about how to change the hatch interface back to the ribbon here: http://wp.me/p1aURt-xL\

      But the system variable that you are looking for is HPDLGMODE and set it to
      ~Greg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s