I can't get a custom hatch to work in AutoCAD 2018

I can't get a custom hatch to work in AutoCAD 2018

Anonymous
Not applicable
1,453 Views
5 Replies
Message 1 of 6

I can't get a custom hatch to work in AutoCAD 2018

Anonymous
Not applicable

Trying to use this pattern for a plywood hatch:

 

*Plywood
45, 0,0, 0,.25
45, 0,.0625, 0,.25
0, 0,0, 0,.125

 

I pasted it into the acad.pat file, in the "User Defined Hatch Patterns" at the bottom.

 

Now when I go to create a hatch, "Plywood" shows up in the predefined list of patterns -- it even shows the correct thumbnail on the ribbon -- but if I select it, the hatch will default back to ANSI31 as soon as I execute the command. 

 

Does anyone have any idea why it might be doing this?

 

I also tried creating a separate Plywood.pat file with just that one definition, but had even less success (it didn't show up on the predefined or custom pattern lists at all). 

0 Likes
Accepted solutions (1)
1,454 Views
5 Replies
Replies (5)
Message 2 of 6

WarrenGeissler
Advisor
Advisor
Accepted solution

Make sure you have an extra blank line at the end of your ACAD.PAT file or you get an error.


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

Message 3 of 6

Anonymous
Not applicable

Worked perfectly -- thanks a lot!

0 Likes
Message 4 of 6

Anonymous
Not applicable

Hi,

 

I have this exact same issue. I've tried adding my custom hatch to the acad.pat file as well as creating its own custom file. I have added a blank line at the end of my text document. The .pat files are all located according to the support file path. 

 

I can see the thumbnail showing the pattern, but when I apply it, AutoCAD loads as if it is doing something, but nothing happens - it just hangs. After pressing escape about 10 times, it allows to to continue use of AutoCAD, but does not use the custom hatch. 

 

The pat file text is below (and not complete, since I can't even see the hatch)

*2X6 TILE,
0, 0,0, 0,2, 6,-6
90, 0,0, 6,0, 2,-2

 

I'd really appreciate help!

0 Likes
Message 5 of 6

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....

*2X6 TILE,
0, 0,0, 0,2, 6,-6
90, 0,0, 6,0, 2,-2

....


I suspect [without testing] that you really want:


*2X6 TILE,
0, 0,0, 0,2, 6,-6
90, 0,0, 0,6, 2,-2

 

The X and Y offsets are in relation to the direction of the lineset.

 

But whether that correction will fix your problem, I couldn't say.  Are pattern names allowed to have spaces in them?

 

EDIT:  That change made it work for me [if this isn't the pattern you intended, write back with an image]:

Kent1Cooper_0-1637158757136.png

And I find that yes, pattern names are allowed to have spaces.

 

Further EDIT:  I suspect the reason there's an error with the original version is that it would need to create line segments within the same lineset that would overlay each other and cover the intended gaps:

Kent1Cooper_0-1637160887119.png

The white is the "base" 2-on-2-off line, and the other colors are [shifted over a little to illustrate] the offsets of 6 units in the lineset's "X" direction, but they would actually all line along the same line as the white ones.

Kent Cooper, AIA
Message 6 of 6

Anonymous
Not applicable

@Kent1Cooper Thanks for the quick reply! When I replaced the space in the file name and .pat file with a dash, it started working. I don't know how your pattern name is working with spaces; that's what caused my pattern to fail.

 

I was also completely unaware that "The X and Y offsets are in relation to the direction of the lineset." - that's super helpful - thanks!!

 

This hatch is far from complete - I just wanted to get it to work in order to continue tweaking it. My end goal is a 24x72 tile with 1/2" joints where the tile is staggered 2'.

0 Likes