# Create Hatch Pattern from Selection

**URL:** <https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001>\
**Category:** Share\
**Tags:** revit\
**Created:** [July 22, 2018, 8:38pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001 "2018-07-22T20:38:21Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![kloffredo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kloffredo/32/48807_2.png) [@kloffredo](https://forum.dynamobim.com/u/kloffredo)\
**Post date:** [July 31, 2018, 2:32pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/21 "2018-07-31T14:32:54Z")

</div>

Thank you @Jonathan.Olesen. It was conflicting versions and packages. I uninstalled all the older versions of Dynamo and it worked like a charm.

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 1, 2018, 3:36am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/22 "2018-08-01T03:36:27Z")

</div>

Hi @bradshales,  
Maybe you have found this by now, but just in case, perhaps this is what you were looking for?

 ![Units](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a291718e89e5ee82cd6debabfe7d31fba9f43751.PNG)

If you change the units from “INCH” to “MM”, I wonder how that affects the output. It will still show “IN” in the Slope Tolerance Results, but it will probably mean something else. In any case, this may justify another update for the graph so that the outputs are still useful outside of the imperial world.

Just out of curiosity, I am guessing that when you run Dynamo on a Metric model, that the default units are in Meters?

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 1, 2018, 3:55am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/23 "2018-08-01T03:55:27Z")

</div>

Awesome! Thanks @Jonathan.Olesen and @kloffredo . It seems like the graph is in working order. I will take the issue off the update list.

---

<div class="post-metadata">

**Author:** ![kloffredo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kloffredo/32/48807_2.png) [@kloffredo](https://forum.dynamobim.com/u/kloffredo)\
**Post date:** [August 14, 2018, 3:13pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/24 "2018-08-14T15:13:39Z")

</div>

Hi @dcmasten1

Just one more quick question. I am receiving this error when attempting to create my hatch. Do you know of any ways to correct this error with out changing the scale of the hatch pattern I made? ![Spacing](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/db98b48ca0c1b2a37dd6ade7efacffe3dbff6c9a.png)

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 14, 2018, 3:42pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/25 "2018-08-14T15:42:36Z")

</div>

Hi @kloffredo

I think I might know why. Can you send me a screenshot of your sketch and tell me how large it is?

---

<div class="post-metadata">

**Author:** ![kloffredo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kloffredo/32/48807_2.png) [@kloffredo](https://forum.dynamobim.com/u/kloffredo)\
**Post date:** [August 14, 2018, 4:43pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/26 "2018-08-14T16:43:12Z")

</div>

![hatch%20and%20dimensions](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/4/640ded40a8dae8baa90b4d652bd3646d63cd6d67.png)

Thanks @dcmasten1

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 15, 2018, 2:42am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/27 "2018-08-15T02:42:42Z")

</div>

Huh, well I guess that wasn’t very helpful…  
I was successful the first time.

 ![test%20pattern](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f84aa72ee11a09bc3d5ad1f99d6c84fa7b36faa4.png)

Not to mention that the slopes in this pattern are perfect for hatches; they don’t require any correction.  
I am guessing that you are using the latest version of the graph. Maybe you would like to try loading the pattern that I made from your sketch.  
[new pattern.txt](https://forum.dynamobim.com/uploads/short-url/AduYlnyu5xZ4BxvmwT8POK0XjTp.txt) (3.1 KB)  
If that works, then we know there is something different in your Dynamo settings that produced your pattern.  
If it doesn’t work, then there is something else going on in your Revit settings. That’s all assuming that the sketches are the actually same.  
If a slope requires correction, and the result is still a dashed line that takes over 100 feet before it can repeat again in the exact same place on a grid - then you won’t be able to load it unless you reduce your slope tolerance settings when you make the pattern.  
I’m not sure if that made any sense, but the message you received from Revit means that you are at battle with the limits of the program. If you have any luck @kloffredo, let me know how it goes.

Here is a shot from my player as well. If your settings are the same and slope tolerance results are different, then we know that our sketches are different as well.

 ![test%20hatch](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/9905cd43861bfee7c2b690782500bc77e9612cba.png)

---

<div class="post-metadata">

**Author:** ![Kjell\_Vidar\_Andersen](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kjell\_Vidar\_Andersen](https://forum.dynamobim.com/u/Kjell_Vidar_Andersen)\
**Post date:** [August 15, 2018, 3:00pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/29 "2018-08-15T15:00:13Z")

</div>

Hi, it looks good. But when I try to import the patternfile I get an error: No “Model” type pattern found.And I see that numbers are with comma instead of dot. How do i Change this?

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 16, 2018, 3:07am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/30 "2018-08-16T03:07:09Z")

</div>

Hi @Kjell_Vidar_Andersen,  
Maybe you can change your file from a .pat to a .txt and send it my way.  
By the way, are you using it in Revit, or Autocad?

---

<div class="post-metadata">

**Author:** ![Kjell\_Vidar\_Andersen](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kjell\_Vidar\_Andersen](https://forum.dynamobim.com/u/Kjell_Vidar_Andersen)\
**Post date:** [August 16, 2018, 6:59am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/31 "2018-08-16T06:59:26Z")

</div>

Thanks, Im using Revit,  
file is attached  
[Tiles.txt](https://forum.dynamobim.com/uploads/short-url/zzkDxS93wmlxZfa4wJZLqaOOMqQ.txt) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![kloffredo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kloffredo/32/48807_2.png) [@kloffredo](https://forum.dynamobim.com/u/kloffredo)\
**Post date:** [August 17, 2018, 2:47pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/32 "2018-08-17T14:47:16Z")

</div>

Hey there,

Quick update, we were able to resolve the line spacing warning by removing all lines that were less than 6". I believe Revit will display a warning if it thinks it will not be able to display a line in the hatch correctly. We also were able to fix the warning in another hatch by lowering the slope correction slider from 25 to about 22. If you bring the slope correction any lower it starts messing up your hatch.

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [August 18, 2018, 2:09pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/33 "2018-08-18T14:09:12Z")

</div>

Interesting. At this point, I’d have to see a revit file, and run Dynamo while open, to know what is going on. If were to replace many of the commas with decimal points, it seems like your sketch is still gigantic. If a revit file link is difficult, maybe you can send me a sketch with dimensions instead?

---

<div class="post-metadata">

**Author:** ![Kjell\_Vidar\_Andersen](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kjell\_Vidar\_Andersen](https://forum.dynamobim.com/u/Kjell_Vidar_Andersen)\
**Post date:** [August 21, 2018, 7:52am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/34 "2018-08-21T07:52:33Z")

</div>

Hi,

Atttached is Revit file and a picture of one of the hatches i trying to make.[Project1.rvt](https://forum.dynamobim.com/uploads/short-url/xfp3IzTDeRunCKcECKIz4AzjPpT.rvt) (1.1 MB)

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/f/affa0c6ba98e5463e6c575f7339dcfff19a3d258.jpeg)

---

<div class="post-metadata">

**Author:** ![Skitller](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Skitller](https://forum.dynamobim.com/u/Skitller)\
**Post date:** [September 19, 2018, 6:38pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/35 "2018-09-19T18:38:46Z")

</div>

Hi i am having the same problem. Is it maybe because we are working in mm instead of IN?

---

<div class="post-metadata">

**Author:** ![kloffredo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kloffredo/32/48807_2.png) [@kloffredo](https://forum.dynamobim.com/u/kloffredo)\
**Post date:** [October 4, 2018, 7:30pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/36 "2018-10-04T19:30:32Z")

</div>

Hey @dcmasten1, is there anyway to create a circular hatch? If not, can you think of a way that might make it happen?

Thank you!

---

<div class="post-metadata">

**Author:** ![andrew\_mehr](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@andrew\_mehr](https://forum.dynamobim.com/u/andrew_mehr)\
**Post date:** [November 18, 2018, 11:50pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/38 "2018-11-18T23:50:09Z")

</div>

in some countries use Meters (e.g. 2.1m) & some Milliliters (e.g. 2100mm)

---

<div class="post-metadata">

**Author:** ![Mike\_Chan](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mike\_Chan](https://forum.dynamobim.com/u/Mike_Chan)\
**Post date:** [February 2, 2019, 3:17am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/39 "2019-02-02T03:17:10Z")

</div>

First of all, I like to thanks dcmasten1 initial this Dynamo Graph for Hatch pattern file creation and all of those contributed efforts to make it better so far. That are excellent works.[Ultra Hatch\_MM.dyn](https://forum.dynamobim.com/uploads/short-url/llhv67MNhEGDBWp7LfotMYJCSqY.dyn) (137.4 KB)  
I modified the graph to suit for my own needs and guess it may help another too. The attached Dyn is work for mm unit only, and I re-route the graph, changing the repeating tile method. I use the “Hidden Lines” to determine the repeat tile boundary rather than the original graph calculating the overall selected lines.  
Target Pattern:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/886e4bc4a1b169c3413b480c9da106ee6b31e56a.png)  
Analysis the repeat tile on the target pattern:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00f1cc4d476da3d617a8b3b4110e68ebfd5d175e.png)  
Determined single repeating tile for Dynamo Graph  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/472134ca58c49ee4e89b0cc0ee4fe6ac719f9d92.png)

---

<div class="post-metadata">

**Author:** ![Mike\_Chan](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mike\_Chan](https://forum.dynamobim.com/u/Mike_Chan)\
**Post date:** [February 2, 2019, 3:29am UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/40 "2019-02-02T03:29:04Z")

</div>

pat. file don’t take circular and curve, only lines. you can try the create your curve and circular with segments of lines.

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [February 23, 2019, 4:07pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/41 "2019-02-23T16:07:38Z")

</div>

Nice job @Mike_Chan,  
It seems like the native graph had scaling issues when switching to MM.  
Glad that you found a way!

And yes @kloffredo, the issue is with the file type. Otherwise you are stuck with arrays of detail groups.

---

<div class="post-metadata">

**Author:** ![dcmasten1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dcmasten1/32/52484_2.png) [@dcmasten1](https://forum.dynamobim.com/u/dcmasten1)\
**Post date:** [September 14, 2019, 8:27pm UTC](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001/42 "2019-09-14T20:27:52Z")

</div>

Well after several requests, I guess I’ve finally come to the conclusion that not everyone is part of the Empire (which is of course where we still use Imperial Units like Inches 😜).

So it seemed like it was time for another update.  
Now Ultra Hatch is fully compatible with Millimeters!  
[Ultra Hatch.dyn](https://forum.dynamobim.com/uploads/short-url/wW1FbrWNWngFa1bHY6BIerTYty9.dyn) (139.8 KB)

This change added an extra input to the player, which was already pretty bogged down. In order to simplify things, a new Settings box has replaced several input nodes; taking up less space on the screen. Just make sure to make changes in the brackets without deleting them.

 ![Star%20Destroyer%20Hatch](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/e/5ec2a87c7c722c852500636d098c6e0670feaf9a.png)  
[Imperial March.txt](https://forum.dynamobim.com/uploads/short-url/A5FK1AUq0ZxlqhNCAr1dcjVGJUs.txt) (212.7 KB) (change .txt to .pat)  
Cause everyone needs a Star Destroyer Hatch Pattern!

[Previous page](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001.md?page=1)

[Next page](https://forum.dynamobim.com/t/create-hatch-pattern-from-selection/24001.md?page=3)
