- Please select -

How to Add Custom Hatch Pattern to a Drawing?

Tips and Tricks Naqibullah M 4 August 2021

,

How to Add Custom Hatch Pattern to a Drawing?

In order to add a custom hatch pattern to your drawing, please see the steps below: First, let’s find out the location of the Hatch Pattern File.

  1. Click Options  (Standard toolbar) or Tools > Options.
  2. On the System Options tab, click File Locations.
  3. In Show folders for, select Hatch Pattern File and note the directory(only available in Solidworks 2021):
    Locating the File Location

    http://help.solidworks.com/2021/english/SolidWorks/sldworks/t_hatch_pattern_file_change_location.htm

  4. Now to go to the location and edit the .ptn file at the location found through the above location and add the syntax for the custom pattern:Editing the file on the location

 5. Save the file and hit F5 to refresh.

6.  Open Solidworks again and choose the newly added Hatch Pattern (endgrain) from the list:          Opening the Solidworks again Below is the syntax for wood grain pattern that is shown in the above screenshot: ;;;;;;;;;;;;;;;;;;;;;;CUSTOM HATCH PATTERN;;;;;;;;;;;;;;;;;;;;;;;;;; *:501:endgrain,Wood, end grain 0, .8,0, 1,1, .05,-.95 0, .1,.1, 1,1, .1,-.9 0, .75,.15, 1,1, .05,-.95 0, .15,.25, 1,1, .05,-.95 0, .75,.3, 1,1, .05,-.95 0, .2,.35, 1,1, .05,-.95 0, .75,.4, 1,1, .05,-.95 0, .2,.5, 1,1, .05,-.55,.05,-.35 0, .2,.6, 1,1, .1,-.5,.05,-.35 0, .15,.75, 1,1, .05,-.15,.05,-.4,.05,-.3 0, .1,.85, 1,1, .05,-.2,.1,-.65 0, .75,.9, 1,1, .05,-.95 0, .1,.95, 1,1, .05,-.25,.05,-.65 45, 0,0, .7071067812,.7071067812, .141421,-1.272792562 45, .85,0, .7071067812,.7071067812, .2828427,-1.131370862 45, .85,.5, .7071067812,.7071067812, .07071,-1.343503562 45, 0,.6, .7071067812,.7071067812, .212132,-1.202081562 45, .85,.6, .7071067812,.7071067812, .3535534,-1.060660162 45, .85,.75, .7071067812,.7071067812, .212132,-1.202081562 315, .65,.85, .7071067812,.7071067812, .07071,-1.343503562 315, .3,.05, .7071067812,.7071067812, .141421,-1.272792562 315, .35,.45, .7071067812,.7071067812, .141421,-1.272792562 315, .65,.25, .7071067812,.7071067812, .141421,-1.272792562 315, .6,.65, .7071067812,.7071067812, .141421,-1.272792562 315, .65,.75, .7071067812,.7071067812, .212132,-1.202081562 315, .4,.15, .7071067812,.7071067812, .212132,-1.202081562 315, .55,.2, .7071067812,.7071067812, .212132,-1.202081562 315, .4,.55, .7071067812,.7071067812, .212132,-1.202081562 315, .5,.6, .7071067812,.7071067812,.212132,-1.202081562 26.5650512, .05,.2, .894427191,-.4472135955, .11180339,-2.12426458 26.5650512, .8,.15, .894427191,-.4472135955, .4472136,-1.788854377 26.5650512, .8,.3, .894427191,-.4472135955, .4472136,-1.788854377 26.5650512, .8,.4, .894427191,-.4472135955, .447214,-.67,.22361,-.895243977 26.5650512, .9,.55, .894427191,-.4472135955, .11180339,-2.12426458 26.5650512, 0,.9, .894427191,-.4472135955, .11180339,-2.12426458 26.5650512, .8,.9, .894427191,-.4472135955, .2236068,-2.012461177 333.4349488, .55,0, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .2,.25, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .2,.1, .894427191,.4472135955, .11180339,-2.124261177 333.4349488, .25,.35, .894427191,.4472135955, .3354102,-1.900657777 333.4349488, .45,.35, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .55,.4, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .25,.5, .894427191,.4472135955, .11180339,-2.124261177 333.4349488, .3,.6, .894427191,.4472135955, .11180339,-2.124261177 333.4349488, .7,.8, .894427191,.4472135955, .11180339,-2.124261177 333.4349488, .65,.45, .894427191,.4472135955, .11180339,-2.124261177 333.4349488, .2,.75, .894427191,.4472135955, .3354102,-1.900657777 333.4349488, .15,.85, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .7,.55, .894427191,.4472135955, .1118,-1.0062,.1118,-1.006267977 333.4349488, .4,.75, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .45,.85, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .15,.95, .894427191,.4472135955, .2236068,-2.012461177 333.4349488, .45,.95, .894427191,.4472135955, .2236068,-2.012461177  

That is it, hope you find this tip useful.

 

  Naqibullah Mohammadullah Applications Engineer Central Innovation

At Central Innovation, we can provide all – or part – of the solution. Including SOLIDWORKSARCHICAD, and many more industry-leading tools.

It’s something we’ve been doing for almost 30 years. Our commitment to customer service is second to none: we help you get the best out of your technology.

For a truly unique solution to your unique challenges, please contact us. Or read about some of the great services and solutions we offer.

Back to Tips and Tricks