.PAT file name length limit - 34 characters? (Hatch Pattern files) -AutoCAD 2016

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am in AutoCAD 2016.
Recently I have been working a lot with custom hatch patterns which are their own individual [name].pat files.
I am writing this post mostly to confirm something that seems to be true, but I'm not certain. I was not able to find anything about it on the internet including these forums.
If I create a custom hatch pattern file (.pat file), is it true that the maximum file name length is 34 characters (not including the extension (the .pat))? That seems to be what I have found. I did some testing and eventually found that a hatch pattern file whose name was 34 characters did work in AutoCAD, but if I try to use a .PAT file whose name is 35 characters or more, AutoCAD bugs out and then gives me an error message "Error handler re-entered. Exiting now." and automatically exits AutoCAD without saving.
Further details: I have HPDLGMODE set to 1. I haven't checked if the same thing happens with HPDLGMODE set to 2. (And I just today found out you can set HPDLGMODE to 0, I don't know what that does at all).
Thanks