Results 1 to 5 of 5

Thread: Error in reading the pattern file

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2008-11
    Location
    Ocean Shores, NSW Australia
    Posts
    1
    Login to Give a bone
    0

    Default Error in reading the pattern file

    In one of my drawings I can't edit some hatches without the following warning coming up:
    ERROR IN READING THE PATTERN FILE
    In the hatch menu only certain hatches are listed but in other drawings the full range of hatch types are listed in the menu and I can edit all of them
    The hatches that are causing me trouble in the problem drawing are GRAVEL and AGGREGAT.
    Can anyone help me here? Is there a way I can get the hatch attributes in another drawing to be imported into the problem drawing?
    John

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Error in reading the pattern file

    It sounds like you have two pat files and one is corrupt (? strange).
    One workaround in any one drawing would be to temporarily change all the affected hatch objects to a different pattern and purge out the bad hatch definition. Copy and paste an area of hatching from a "good" file into the affected one and use match properties to apply that hatch to the original objects. Probably.

  3. #3
    AUGI Director scott.wilcox's Avatar
    Join Date
    2015-11
    Location
    Edmonton, Alberta
    Posts
    990
    Login to Give a bone
    0

    Default Re: Error in reading the pattern file

    By default, there are 2 hatch patttern files, ACAD.PAT and ACADISO.PAT.

    If the drawing's MEASUREMENT variable is set to 0, AutoCAD read the ACAD.PAT hatch pattern file. If the drawing's MEASUREMENT variable is set to 1, AutoCAD reads the ACADISO.PAT hatch pattern file. It sounds like one of these does not have the hatch definitions you mentioned.

    A simple test is to check your MEASUREMENT variable value and change it (from 1 to 0 or 0 to 1). My guess it is set to 1 (metric, ACADISO.PAT) and the gravel hatch is in the 0 setting (imperial, ACAD.PAT).

  4. #4
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Error in reading the pattern file

    Quote Originally Posted by scott.wilcox View Post
    By default, there are 2 hatch patttern files, ACAD.PAT and ACADISO.PAT.

    If the drawing's MEASUREMENT variable is set to 0, AutoCAD read the ACAD.PAT hatch pattern file. If the drawing's MEASUREMENT variable is set to 1, AutoCAD reads the ACADISO.PAT hatch pattern file. It sounds like one of these does not have the hatch definitions you mentioned.

    A simple test is to check your MEASUREMENT variable value and change it (from 1 to 0 or 0 to 1). My guess it is set to 1 (metric, ACADISO.PAT) and the gravel hatch is in the 0 setting (imperial, ACAD.PAT).
    Doh! That's probably right.

  5. #5
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Error in reading the pattern file

    The GRAVEL is in the ACAD.PST and ACADISO.PAT files. AGREGAT is a custom file which "should" be in an AGREGAT.PAT file somewhere in your search paths (unless someone's copied the definition into the ACAD / ACADISO .PAT files).

    If it's in the standard PAT files this is not recommended for 3 reasons:
    • If there's an error with the definition, any hatches defined after the custom hatch won't load.
    • If there's an error, loading the file (i.e. open the Hatch dialog) will become very slow.
    • If AutoDesk gives an update these files may be overwritten ... losing any custom hatches.
    There's basically 2 ways a standard hatch like GRAVEL can become corrupt:
    1. Someone's changed the standard PAT file(s) and inadvertently made a mistake.
    2. The hard drive had a problem sometime and the file itself became corrupt.
    Find your installation CDs / DVD and copy these files from there ... it should solve the problem for GRAVEL at least. For AGREGAT, you need to find the orriginal version of the AGREGAT.PAT file (maybe through Google).

Similar Threads

  1. Hatch pattern - error in reading pattern file
    By bbapties in forum AutoCAD Customization
    Replies: 10
    Last Post: 2011-04-01, 11:40 PM
  2. Error in Pattern File
    By jeff.77718 in forum AutoCAD General
    Replies: 2
    Last Post: 2008-02-04, 01:00 PM
  3. Error when loading custom linetype - Error reading shape file
    By drafting.82475 in forum AutoCAD Customization
    Replies: 4
    Last Post: 2007-04-19, 07:36 AM
  4. Replies: 2
    Last Post: 2006-05-10, 06:38 PM
  5. Replies: 5
    Last Post: 2006-02-28, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •