Results 1 to 5 of 5

Thread: Earth Hatch Pattern [at a 45 deg angle]

  1. #1
    100 Club
    Join Date
    2005-09
    Posts
    184
    Login to Give a bone
    0

    Default Earth Hatch Pattern [at a 45 deg angle]

    Hello, I am trying to create the hatch pattern for the earth hatch that has the lines rotated at 45 degrees. Can someone help me with the code for it please ?

    I know that the code for the typical hatch is as follows:
    *EARTH, Earth or ground (subterranean)
    0, 0,0, .25,.25, .25,-.25
    0, 0,.09375, .25,.25, .25,-.25
    0, 0,.1875, .25,.25, .25,-.25
    90, .03125,.21875, .25,.25, .25,-.25
    90, .125,.21875, .25,.25, .25,-.25
    90, .21875,.21875, .25,.25, .25,-.25

    I was able to get the angle to change, but basically know nothing about the rest of it. Thanks

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

    Default Re: Earth Hatch Pattern [at a 45 deg angle]

    You certainly could write a pattern rotated at 45 degrees. In addition to changing the line angles (the first number, in degrees), you would need to change the second and third numbers, which represent the X- and Y-coordinates of the line origin. At 45 degrees, that introduces a factor of the square root of two over two, so the numbers will be messy and approximations at best. That can result in a breakdown in the pattern at large distances from the hatch origin.

    An easier solution would be to use the already defined EARTH hatch pattern, and simply specify a 45-degree rotation when placing the hatch.

  3. #3
    I could stop if I wanted to hugh.69031's Avatar
    Join Date
    2016-01
    Location
    Melbourne, Australia
    Posts
    360
    Login to Give a bone
    0

    Default Re: Earth Hatch Pattern [at a 45 deg angle]

    Try this verion that has been rotated 45 degrees about the origin:

    *EARTH45,Earth or ground (subterranean)
    ;-------------------------------------------------------------------------------
    ; Pattern written by HatchKit v2.7 Hatch Pattern Editor
    ; HatchKit v2.7 Hatch Pattern Editor(c) Cadro Pty Ltd 1990-2013.
    ; www.hatchkit.com.au
    ;-------------------------------------------------------------------------------
    ;-Template=EARTH, Earth or ground (subterranean)
    ;-Date =4/04/2013
    ;-Time =11:32:02 AM
    ;-------------------------------------------------------------------------------
    45,-0.13258,0.13258,0.25,0.25,0.25,-0.25
    45,-0.066291,0.066291,0.25,0.25,0.25,-0.25
    45,0,0,0.25,0.25,0.25,-0.25
    135,0,0.30936,0.25,0.25,0.25,-0.25
    135,-0.066291,0.24307,0.25,0.25,0.25,-0.25
    135,-0.13258,0.17678,0.25,0.25,0.25,-0.25


    As mentioned above, the X and Y values have changed.
    This pattern will, however, replicate indefinitely without roundoff error as any initial error in each element's X,Y location is simply passed along.

    hth
    Last edited by hugh.69031; 2013-04-04 at 12:43 AM.

  4. #4
    100 Club
    Join Date
    2005-09
    Posts
    184
    Login to Give a bone
    0

    Default Re: Earth Hatch Pattern [at a 45 deg angle]

    Thanks for the reply's, the code worked great. For the record, I am aware that you can rotate the standard hatch in AutoCAD but I am using it to make the rotated hatch in Revit... of which I have not yet figured out how to do it there yet. Thanks again, Derek

  5. #5
    I could stop if I wanted to hugh.69031's Avatar
    Join Date
    2016-01
    Location
    Melbourne, Australia
    Posts
    360
    Login to Give a bone
    0

    Default Re: Earth Hatch Pattern [at a 45 deg angle]

    You can load the EARTH45 pattern as a Revit Drafting pattern without modification.
    To load it as a model pattern you need to add a ;%TYPE=MODEL line to it (as described in the text file Revit.pat on your system):

    *EARTH45,Earth or ground (subterranean)
    ;%TYPE=MODEL
    ;-------------------------------------------------------------------------------
    ; Pattern written by HatchKit v2.7 Hatch Pattern Editor
    ; HatchKit v2.7 Hatch Pattern Editor(c) Cadro Pty Ltd 1990-2013.
    ; www.hatchkit.com.au
    ;-------------------------------------------------------------------------------
    ;-Template=EARTH, Earth or ground (subterranean)
    ;-Date =4/04/2013
    ;-Time =11:32:02 AM
    ;-------------------------------------------------------------------------------
    45,-0.13258,0.13258,0.25,0.25,0.25,-0.25
    45,-0.066291,0.066291,0.25,0.25,0.25,-0.25
    45,0,0,0.25,0.25,0.25,-0.25
    135,0,0.30936,0.25,0.25,0.25,-0.25
    135,-0.066291,0.24307,0.25,0.25,0.25,-0.25
    135,-0.13258,0.17678,0.25,0.25,0.25,-0.25

    - however you will find it is defined at just too small a scale to load at 1:1 scale as the repetition distance is just below the threshhold of acceptance:
    http://www.hatchkit.com.au/faq_detail.php?id=7

    Any scale above 1 will work, even 1.0000001 but you may want a scale that won't flood the hatched section, say 24 to gain a 1 foot repetition within the model.

    Only Model patterns can be rotated in Revit - mouse hover and [TAB] to a line in your hatch, click to select then rotate.

    hth, Hugh
    Last edited by hugh.69031; 2013-04-05 at 01:09 AM.

Similar Threads

  1. Earth hatch pattern (rotated 45 degrees)
    By goodtastingsteak in forum Revit Architecture - General
    Replies: 4
    Last Post: 2017-02-23, 09:42 AM
  2. problem with hatch pattern and angle
    By t_khoshzaman in forum Dot Net API
    Replies: 2
    Last Post: 2010-03-02, 08:36 AM
  3. Revit Earth Hatch Pattern
    By rroswall.242547 in forum Revit - Platform
    Replies: 1
    Last Post: 2010-02-17, 10:28 AM
  4. hatch pattern....only one line is at the angle i need
    By still.james in forum Revit Architecture - Families
    Replies: 2
    Last Post: 2009-06-17, 11:09 PM
  5. Earth Pattern at 45 degree angle/diagonal?
    By Baldwin_4-6-0 in forum Revit Architecture - General
    Replies: 8
    Last Post: 2007-08-02, 03:56 AM

Posting Permissions

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