Make and Save Custom Hatch Pattern
This Routine has been featured on Cadalyst’s website and is very handy. If you have ever wondered how to make a custom hatch pattern and then looked at the coding that is required, you will really appreciate this routine. The only drawback that I have come across is that it will only accept line and point entities… This can be over come by drawing your curved objects and then using other LISP routines to convert arcs and circles to line entities. Or use the “SEGS” LISP routine to convert the curved objects to polylines and then explode the polyline. This will turn the polyline segments into line segments.
There are 2 commands:
1) DRAWHATCH <enter> creates a 1X1 square in which you draw your custom hatch pattern
After you have drawn your hatch pattern:
2) SAVEHATCH <enter> lets you name your hatch Pattern and save it as a .pat file.
Saving the .pat file (hatch pattern) allows you to copy the contents and save it in your support file or even add it to your acad.pat file where all of your default patterns are stored.
Picture below: DRAWHATCH & SAVEHATCH in action
Picture below: Applying the newly created hatch
Picture below: Opening the .pat file created by the SAVEHATCH command
Credits
CADALYST(c) 2005 Larry Schiele
Written by Lanny Schiele at TMI Systems Design Corporation
E-Mail : Lanny.Schiele@tmisystems.com
Tested on AutoCAD 2002 to 2012. -- does include a 'VL' function -- should work on Acad2000 on up.
There are 2 commands:
1) DRAWHATCH <enter> creates a 1X1 square in which you draw your custom hatch pattern
After you have drawn your hatch pattern:
2) SAVEHATCH <enter> lets you name your hatch Pattern and save it as a .pat file.
Saving the .pat file (hatch pattern) allows you to copy the contents and save it in your support file or even add it to your acad.pat file where all of your default patterns are stored.
Picture below: DRAWHATCH & SAVEHATCH in action
Picture below: Applying the newly created hatch
Picture below: Opening the .pat file created by the SAVEHATCH command
Credits
CADALYST(c) 2005 Larry Schiele
Written by Lanny Schiele at TMI Systems Design Corporation
E-Mail : Lanny.Schiele@tmisystems.com
Tested on AutoCAD 2002 to 2012. -- does include a 'VL' function -- should work on Acad2000 on up.
Comments
Post a Comment