Results 1 to 2 of 2

Thread: Playing with a Custom Hatch Pattern - Need Syntax Help in the .pat file...

  1. #1
    100 Club
    Join Date
    2006-12
    Posts
    104
    Login to Give a bone
    0

    Default Playing with a Custom Hatch Pattern - Need Syntax Help in the .pat file...

    Hello guys... Working on tweaks to a custom hatch pattern (wavy lines). I have the shape of the "waves" just the way I want them, but they are spaced too far apart. I cannot adjust using the Hatch Scale, because that also shortens the "wavelength". I guess I can't use the spacing option in Hatch Edit, because I'm not dealing with a crosshatch pattern. So I'm left dealing with the .pat file, and I cannot recall which field determines the lateral spacing as the "wave" repeats itself. I'm embarrassed that I can't remember this, but I'm OLD. Chalk it up to too much fermented barley residue...

    Here is the .pat that I've got so far:

    Code:
      *WAVY
    0,0,30,0,60,5,-55
    14.03624344,5,30,14.5521374,58.2085495,4.1231055,-243.2632294
    14.03624344,65,30,14.5521374,58.2085495,4.1231055,-243.2632294
    14.03624344,125,30,14.5521374,58.2085495,4.1231055,-243.2632294
    14.03624344,185,30,14.5521374,58.2085495,4.1231055,-243.2632294
    26.5650501,9,31,26.8328152,53.6656303,2.236068,-131.928009
    26.5650501,69,31,26.8328152,53.6656303,2.236068,-131.928009
    18.434948,11,32,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,71,32,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,131,32,18.9736652,56.9209976,3.1622777,-186.5743866
    33.6900673,14,33,33.2820129,49.9230156,3.6055512,-212.7275238
    33.6900673,74,33,33.2820129,49.9230156,3.6055512,-212.7275238
    33.6900673,134,33,33.2820129,49.9230156,3.6055512,-212.7275238
    -33.6900673,43,35,-33.2820129,49.9230156,3.6055512,-212.7275238
    -33.6900673,103,35,-33.2820129,49.9230156,3.6055512,-212.7275238
    -33.6900673,163,35,-33.2820129,49.9230156,3.6055512,-212.7275238
    -18.434948,46,33,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,106,33,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,166,33,-18.9736652,56.9209976,3.1622777,-186.5743866
    -26.5650501,49,32,-26.8328152,53.6656303,2.236068,-131.928009
    -26.5650501,109,32,-26.8328152,53.6656303,2.236068,-131.928009
    -14.03624344,51,31,-14.5521374,58.2085495,4.1231055,-243.2632294
    -14.03624344,111,31,-14.5521374,58.2085495,4.1231055,-243.2632294
    -14.03624344,171,31,-14.5521374,58.2085495,4.1231055,-243.2632294
    -14.03624344,231,31,-14.5521374,58.2085495,4.1231055,-243.2632294
    0,55,30,0,60,5,-55
    26.5650501,17,35,26.8328152,53.6656303,2.236068,-131.928009
    26.5650501,77,35,26.8328152,53.6656303,2.236068,-131.928009
    18.434948,19,36,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,79,36,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,139,36,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,22,37,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,82,37,18.9736652,56.9209976,3.1622777,-186.5743866
    18.434948,142,37,18.9736652,56.9209976,3.1622777,-186.5743866
    0,25,38,0,60,10,-50
    -18.434948,35,38,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,95,38,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,155,38,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,38,37,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,98,37,-18.9736652,56.9209976,3.1622777,-186.5743866
    -18.434948,158,37,-18.9736652,56.9209976,3.1622777,-186.5743866
    -26.5650501,41,36,-26.8328152,53.6656303,2.236068,-131.928009
    -26.5650501,101,36,-26.8328152,53.6656303,2.236068,-131.928009
    


    What needs to change to get the rows closer together?

    Thanks in advance!
    Last edited by rkmcswain; 2019-02-20 at 12:49 PM. Reason: Added [CODE] tags

  2. #2
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,370
    Login to Give a bone
    0

    Default Re: Playing with a Custom Hatch Pattern - Need Syntax Help in the .pat file...

    Descriptions of the numbers in a hatch pattern:
    1 - Angle of line, in degrees.
    2 - X-coordinate of the line origin.
    3 - Y-coordinate of the line origin.
    4 - Delta-X, the offset along the length of the line between two adjacent lines. For lines with no dash pattern, this value makes no difference and is usually 0.
    5 - Delta-Y, the offset perpendicular to the length of the line between two adjacent lines.
    6, 7, etc. - Dash lengths. Positive numbers are "pen down" (drawn dashes); negative numbers are "pen up" (gaps between dashes). May be omitted, for continuous lines.

    For "straight line" patterns, reducing the Delta-Y (5th number) would bring the parallel lines generated by one line in the pattern definition closer together. Because your pattern is attempting to approximate wavy (curved) lines, it may not be that simple. You will also have to adjust the pen up distance (7th number) to account for the rows being closer, and depending upon how the various lines currently interact, may also have to adjust the Delta-X value, the pen down number and/or the angle to keep the appearance of wavy lines. (I have not analyzed your specific pattern.)
    David Koch

Similar Threads

  1. 2012: Custom Hatch Pattern
    By jagostinho in forum AutoCAD Customization
    Replies: 3
    Last Post: 2014-12-24, 03:49 AM
  2. Hatch pattern - error in reading pattern file
    By bbapties in forum AutoCAD Customization
    Replies: 10
    Last Post: 2011-04-01, 11:40 PM
  3. Replies: 2
    Last Post: 2010-11-21, 09:44 PM
  4. Custom Hatch Pattern
    By craigf.56714 in forum AutoCAD General
    Replies: 2
    Last Post: 2010-11-04, 03:59 PM
  5. Custom Hatch Pattern Help
    By dan302720 in forum AutoCAD Customization
    Replies: 4
    Last Post: 2010-02-04, 11:49 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
  •