# Create Grids

**URL:** <https://forum.dynamobim.com/t/create-grids/62535>\
**Category:** Uncategorized\
**Created:** [April 5, 2021, 12:44pm UTC](https://forum.dynamobim.com/t/create-grids/62535 "2021-04-05T12:44:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![revit1980](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@revit1980](https://forum.dynamobim.com/u/revit1980)\
**Post date:** [April 5, 2021, 12:44pm UTC](https://forum.dynamobim.com/t/create-grids/62535/1 "2021-04-05T12:44:41Z")

</div>

Hello

Please see the error and kindly help how to fix this

Thanks in Advance

![44](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/e/7ed842aebc24e63e120834d635c4806b54000ad8.png)

---

<div class="post-metadata">

**Author:** ![Durmus\_Cesur](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/durmus_cesur/32/62638_2.png) [@Durmus\_Cesur](https://forum.dynamobim.com/u/Durmus_Cesur)\
**Post date:** [April 5, 2021, 2:12pm UTC](https://forum.dynamobim.com/t/create-grids/62535/2 "2021-04-05T14:12:29Z")

</div>

Hi,

Can you share the full script?  
Durmus

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 5, 2021, 2:18pm UTC](https://forum.dynamobim.com/t/create-grids/62535/3 "2021-04-05T14:18:17Z")

</div>

What does the error say? I’m guessing you’re getting nulls, probably from coincident points.

---

<div class="post-metadata">

**Author:** ![revit1980](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@revit1980](https://forum.dynamobim.com/u/revit1980)\
**Post date:** [April 5, 2021, 2:58pm UTC](https://forum.dynamobim.com/t/create-grids/62535/4 "2021-04-05T14:58:51Z")

</div>

Sure I am getting many listed Null value.It is very simple code but I dont know why it gives me error

I have attached the necessary files for your reference.[Grid.dwg](https://forum.dynamobim.com/uploads/short-url/rWQ9BaZMxNuLBx801o3wbNz6Ij0.dwg) (454.6 KB) [Grid.dyn](https://forum.dynamobim.com/uploads/short-url/dzxinKznSEq9ZsjndKaW2KmnEOn.dyn) (22.0 KB) [Grid.rvt](https://forum.dynamobim.com/uploads/short-url/mfNpEM7IUMDlWmSaIecoEQI5kts.rvt) (2.1 MB) Please check!!  
 ![ww](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a6c4ead28890383c768474cea6c1f24be04b5168.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 5, 2021, 2:59pm UTC](https://forum.dynamobim.com/t/create-grids/62535/5 "2021-04-05T14:59:42Z")

</div>

As the error states, your curves are too small. It’s probably a mismatch of units between Dynamo and Revit.

---

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [April 5, 2021, 4:34pm UTC](https://forum.dynamobim.com/t/create-grids/62535/6 "2021-04-05T16:34:33Z")

</div>

Your first problem was that it was extracting the grid heads from the DWG file, so it was trying to compute with circles which have co-incident start and end points (hence the “too small” warning). To resolve this, i’ve added some nodes to filter and use only the “Line” curves.

A second issue was a warning noting that the lines were not on a horizontal plane, so i’ve added a bit to the script to remove the z value of each start/end point:

 ![Grids from DWG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/8/485e9e272118a0e2151cb522c50f82372d158a88.png)

Script adjusted using dynamo version 2.0.4: [Grids from DWG.dyn](https://forum.dynamobim.com/uploads/short-url/bOf6YaziFXP2qLehxBUv3zHWAN.dyn) (45.7 KB)

Hope it helps

---

<div class="post-metadata">

**Author:** ![revit1980](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@revit1980](https://forum.dynamobim.com/u/revit1980)\
**Post date:** [April 5, 2021, 9:46pm UTC](https://forum.dynamobim.com/t/create-grids/62535/7 "2021-04-05T21:46:51Z")

</div>

Perfect!!  
Thanks
