# Space lattice warning

**URL:** <https://forum.dynamobim.com/t/space-lattice-warning/34185>\
**Category:** Packages\
**Created:** [March 30, 2019, 11:04pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185 "2019-03-30T23:04:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [March 30, 2019, 11:04pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/1 "2019-03-30T23:04:37Z")

</div>

Hi,

I tried to explore the space analysis package recently to help me figure various routes in the building, bu I get a warning and I’m not able to run the script.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c4b6b73e476e6cc986f6fa573bdbac5e6a73f37a.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c5095a4d8b41c988697cf7bc53e68e4663b11f26.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 31, 2019, 10:22am UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/2 "2019-03-31T10:22:56Z")

</div>

Try a restart.

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [March 31, 2019, 11:07am UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/3 "2019-03-31T11:07:25Z")

</div>

@jacob.small thanks for the suggestion, I did create a new file with different elements, result is the same.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/6/b6762a47493e6e8b8bd0fbec6430f0e89610eeb1.png)

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [March 31, 2019, 11:08am UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/4 "2019-03-31T11:08:42Z")

</div>

A NEW WARNING though

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [March 31, 2019, 9:53pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/5 "2019-03-31T21:53:44Z")

</div>

What type of units is your project using?

---

<div class="post-metadata">

**Author:** ![keanw](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/keanw/32/70651_2.png) [@keanw](https://forum.dynamobim.com/u/keanw)\
**Post date:** [April 1, 2019, 11:54am UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/6 "2019-04-01T11:54:08Z")

</div>

Hi Arun,

What is returned by Element.GetLocation? The barriers parameter needs to be a list of Lines (we’ll make sure we do better type checking so that the warning is more helpful).

If you have curves that aren’t lines there’s also a helper Util function that converts them for you.

Hope this helps,

Kean

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [April 1, 2019, 4:37pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/7 "2019-04-01T16:37:41Z")

</div>

@john_pierson Its Meters

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [April 1, 2019, 4:42pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/8 "2019-04-01T16:42:29Z")

</div>

@keanw  
thanks for the suggestion  
DO you think its correct ?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8299e9245fa0d1ba6056fba18af52555ca2b7a0.png)

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [April 1, 2019, 4:51pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/9 "2019-04-01T16:51:48Z")

</div>

@keanw

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/6/8607787b822df78385167ad7aa9ef3d9133dccb7.png)

---

<div class="post-metadata">

**Author:** ![Simon\_Breslav](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/simon_breslav/32/70650_2.png) [@Simon\_Breslav](https://forum.dynamobim.com/u/Simon_Breslav)\
**Post date:** [April 1, 2019, 5:23pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/10 "2019-04-01T17:23:40Z")

</div>

@Arun_Prakash, you can try making the resolution a bit smaller, maybe 0.7 is too big, try 0.2, it’s possible that with 0.7, there is no path. For debugging, you can see the underlying lattice structure by using SpaceLattice.Edges node.

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [April 5, 2019, 6:13pm UTC](https://forum.dynamobim.com/t/space-lattice-warning/34185/11 "2019-04-05T18:13:12Z")

</div>

@Simon_Breslav thanks a lot.  
It works now, thanks all for your support.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/808620ff0f2240dfe43eabc4502c4a4ebe85b8c1.png)
