SAVE HATCH PATTERN FROM DRAWING AS .PAT FILE

SAVE HATCH PATTERN FROM DRAWING AS .PAT FILE

Anonymous
Not applicable
32,251 Views
20 Replies
Message 1 of 21

SAVE HATCH PATTERN FROM DRAWING AS .PAT FILE

Anonymous
Not applicable

Can somebody please help me obtain the .pat file from the attached drawing.  

I know there is a way to extract it using a lisp routine, however, using LT i am unable to do so.  

 

I would greatly appreciate it!

0 Likes
Accepted solutions (1)
32,252 Views
20 Replies
Replies (20)
Message 2 of 21

hugha
Collaborator
Collaborator

Hi,

 

while I could do that, that pattern looks very much like StoneCAD's limestone pattern which should be readily available from here:

 

http://www.stonecad.com/

 

Open their Random Ashlar page and download their limestone AutoCAD pattern.

 

 

hth,

 

Hugh Adamson.

 

 

 

Message 3 of 21

Emmsleys
Alumni
Alumni
Accepted solution

Here you go. 

 

Hope it helps. 



Sarah Emmsley
Technical Support Specialist

Message 4 of 21

Anonymous
Not applicable
Thats an awsome source.. Dont knkw how I havent ever found it before!
0 Likes
Message 5 of 21

Anonymous
Not applicable
Thank you! Works great!
0 Likes
Message 6 of 21

Anonymous
Not applicable

how to make my own custom pattern as hatch, i can't turn it to .pat with LSIP

0 Likes
Message 7 of 21

pendean
Community Legend
Community Legend
HELP in AutoCAD/LT has built in tutorials and examples to get you started with coding: dig in and post back if you get stuck.

Or search the web for the one you want, it may already exist.
0 Likes
Message 8 of 21

rj56jj00
Community Visitor
Community Visitor

Hi Sarah,

 

Greetings. Can you help me also doing my CAD pattern to a hatch pattern. I am having a problem especially on the angular lines.

Thanks in advance.

 

0 Likes
Message 9 of 21

hugha
Collaborator
Collaborator

try this:

 

;-------------------------------------------------------------------------------
;        Written by HatchKit for AutoCAD
;        HatchKit for AutoCAD (c)1990-2017 Cadro Pty Ltd
;        www.hatchkit.com.au/
;-------------------------------------------------------------------------------
;-Date                                   : 2018-03-18
;-Time                                   : 18:00:42
;-HatchKit Version                       : 3.1.10.2717
;-HatchKit Output Filetype               : AutoCAD format
;-------------------------------------------------------------------------------

*Pattern,BLOCK
-29.9816393688,270.39,173.43,3126.88850372,12.9210268749,111.96,-11529.8852143
-60.0183606311,214.41,311.37,3126.88850372,-12.9210268749,111.96,-11529.8852143
-60.0183606311,311.37,367.36,3126.88850372,-12.9210268749,111.96,-11529.8852143
-60.0183606311,20.49,117.45,3126.88850372,-12.9210268749,111.96,-11529.8852143
60.0183606311,311.37,20.49,3126.88850372,12.9210268749,111.96,-11529.8852143
29.9816393688,270.39,214.41,3126.88850372,-12.9210268749,111.96,-11529.8852143
29.9816393688,20.49,117.45,3126.88850372,-12.9210268749,111.96,-11529.8852143
-29.9816393688,76.471,367.36,3126.88850372,12.9210268749,111.96,-11529.8852143
-29.9816393688,214.41,76.471,3126.88850372,12.9210268749,111.96,-11529.8852143
-29.9816393688,20.49,270.39,3126.88850372,12.9210268749,111.96,-11529.8852143
-60.0183606311,117.45,173.43,3126.88850372,-12.9210268749,111.96,-11529.8852143
-119.981639369,173.43,311.37,3126.88850372,12.9210268749,111.96,-11529.8852143
-119.981639369,270.39,173.43,3126.88850372,12.9210268749,111.96,-11529.8852143
-119.981639369,76.471,367.36,3126.88850372,12.9210268749,111.96,-11529.8852143
-150.018360631,173.43,76.471,3126.88850372,-12.9210268749,111.96,-11529.8852143
-150.018360631,311.37,367.36,3126.88850372,-12.9210268749,111.96,-11529.8852143
-29.9816393688,294.9,193.92,3126.88850372,12.9210268749,90,-11551.8452143
-29.9816393688,15,238.92,3126.88850372,12.9210268749,90,-11551.8452143
-29.9816393688,208.92,45,3126.88850372,12.9210268749,90,-11551.8452143
-60.0183606311,193.92,286.87,3126.88850372,-12.9210268749,90,-11551.8452143
-60.0183606311,148.92,178.92,3126.88850372,-12.9210268749,90,-11551.8452143
-60.0183606311,342.85,372.85,3126.88850372,-12.9210268749,90,-11551.8452143
-60.0183606311,0,92.942,3126.88850372,-12.9210268749,90,-11551.8452143
29.9816393688,100.98,0,3126.88850372,-12.9210268749,90,-11551.8452143
29.9816393688,15,148.92,3126.88850372,-12.9210268749,90,-11551.8452143
29.9816393688,294.9,193.92,3126.88850372,-12.9210268749,90,-11551.8452143
0,148.92,178.92,0,-387.846096908,90,-297.846096908
0,148.92,208.92,0,-387.846096908,90,-297.846096908
0,148.92,208.92,0,-387.846096908,90,-297.846096908
0,148.92,178.92,0,-387.846096908,90,-297.846096908
-29.9816393688,100.98,387.85,3126.88850372,12.9210268749,90,-11551.8452143
-90,15,238.92,0,387.846096908,90,-297.846096908
-90,372.85,238.92,0,387.846096908,90,-297.846096908
-119.981639369,45,372.85,3126.88850372,12.9210268749,90,-11551.8452143
-119.981639369,193.92,286.87,3126.88850372,12.9210268749,90,-11551.8452143
-119.981639369,387.85,92.942,3126.88850372,12.9210268749,90,-11551.8452143
-119.981639369,238.92,178.92,3126.88850372,12.9210268749,90,-11551.8452143
-150.018360631,286.87,387.85,3126.88850372,-12.9210268749,90,-11551.8452143
-90,208.92,387.85,0,387.846096908,45,-342.846096908
-90,178.92,387.85,0,387.846096908,45,-342.846096908
-90,178.92,387.85,0,387.846096908,45,-342.846096908
-90,208.92,387.85,0,387.846096908,45,-342.846096908
0,0,372.85,0,-387.846096908,45,-342.846096908
0,0,15,0,-387.846096908,45,-342.846096908
0,342.85,372.85,0,-387.846096908,45,-342.846096908
0,342.85,15,0,-387.846096908,45,-342.846096908
-90,208.92,45,0,387.846096908,45,-342.846096908
-90,208.92,45,0,387.846096908,45,-342.846096908
-90,178.92,45,0,387.846096908,45,-342.846096908
-90,178.92,45,0,387.846096908,45,-342.846096908

 

hth

Hugh Adamson

 

0 Likes
Message 10 of 21

kgetev0711
Enthusiast
Enthusiast

How did you save the hatch pattern to a .pat file?


@Emmsleys wrote:

Here you go. 

 

Hope it helps. 


 

0 Likes
Message 11 of 21

hugha
Collaborator
Collaborator

>How did you save the hatch pattern to a .pat file?

 

Hatch patterns definitions are stored in drawings where used. Here are some ways to dig them out if you do not have the .PAT from which they were loaded.

 

  1. If you have access to AutoLisp, load and run GETPAT.LSP (http://www.turvill.com/t2/free_stuff/getpat.lsp)
  2. WBLOCK a portion of the drawing hatched with that pattern area to an ASCII .DXF file to open with HatchKit.  (www.hatchkit.com.au) Save the pattern of interest to a .PAT file.
  3. WBLOCK a portion of the drawing hatched with that pattern area to an ASCII .DXF file. Open the file with a text editor ... hatch definitions can be assembled from the ENTITY section by following these DXF codes: https://www.autodesk.com/techpubs/autocad/acadr14/dxf/hatch_al_u05_c.htm

hth,

Hugh Adamson

 

 

 

 

 

 

Message 12 of 21

Anonymous
Not applicable

Hi my name is Adrian. I was wondering would you be able to turn a pattern I drew into a .pat hatch? I attached the DWG with the pattern.

0 Likes
Message 13 of 21

steven-g
Mentor
Mentor

@Anonymous wrote:

Hi my name is Adrian. I was wondering would you be able to turn a pattern I drew into a .pat hatch?


This is the LT help forum, where people who are users of the program try to help other users work with the program, many of us do actually take on private assignments and you can ask over in the classifieds section to see if someone can do the work for you. 

If you want to try yourself then we can certainly help you with that by pointing out links or if you wish to post what you have attempted so far then someone would no doubt help.

You could start here, create custom hatch or even try the program  https://www.hatchkit.com.au/ listed above.

Your first hint is that a hatch pattern can only contain straight segments, no curves, so you would need to change your pattern to start with as it is now made up of polyline arc's.


0 Likes
Message 14 of 21

hugha
Collaborator
Collaborator

Try the attached zipped pattern of a single tile in a diamond arrangement, prepared with HatchKit from a DXF obtained from your DWG.

 

 

 

hth,

 

Hugh Adamson

 

0 Likes
Message 15 of 21

Anonymous
Not applicable

Thank you this is great.

0 Likes
Message 16 of 21

M.ARSHAD
Explorer
Explorer

how to use this LMSTN.pat file to convert a cad pattern into .pat file

0 Likes
Message 17 of 21

steven-g
Mentor
Mentor

@M.ARSHAD wrote:

how to use this LMSTN.pat file to convert a cad pattern into .pat file


You don't, that is a .pat file in answer to the OP's question. It isn't a method to create other .pat files. Those options where given in the 11th post by @hugha 

0 Likes
Message 18 of 21

Anonymous
Not applicable

Can a .PAT file contain more than one pattern ?

0 Likes
Message 19 of 21

hugha
Collaborator
Collaborator

Yes. They are text files.

Simply concatenate one or more pattern definitions to the first.

Warning: Do not do this within AutoCAD or AutoCAD LT unless the file is called ACAD.PAT or ACADISO.PAT (for AutoCAD) or ACLT.PAT or ACLTISO.PAT (for AutoCAD LT) as those sytems otherwise require each pattern definition to be stored individually with exactly matched pattern and file name (pattern FRED by itself in file FRED.PAT).

 

Note: Best practice is to avoid adding to or editing AC*.PAT as they are at risk of overwriting during a system  reinstallation.

 

hth,

Hugh Adamson

www.hatchkit.com.au

 

Message 20 of 21

Anonymous
Not applicable

That is what I thought. Only if the <myPattern>.PAT file contains one pattern with the same filename and pattern name works. I was confused by the "installed" .PAT files that contain multiple.

Thank you!

0 Likes