# Draw ShortestWalk routes on the surface

**URL:** <https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016>\
**Category:** Geometry\
**Created:** [May 18, 2018, 8:49am UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016 "2018-05-18T08:49:31Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [May 18, 2018, 1:04pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/21 "2018-05-18T13:04:44Z")

</div>

Just updated to a better solution 🙂  
You might not need the “DSCore” part, this is because I have some packages installed that also uses the “String” name and you thus have to specify which package you’re using.

EDIT:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/965cc3602013734631cd37ddd5db67d0b61ebce1.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:** [May 18, 2018, 1:54pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/22 "2018-05-18T13:54:52Z")

</div>

Tip: adding an empty string to a number turns it into a string. Try this:

x = (0…12)+””

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [May 18, 2018, 2:02pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/23 "2018-05-18T14:02:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/a/2a3f89b8783fab04e20120b7d49a9335dda88ac7.png)  
I’m not particularly happy about the unused outputs, aside from that though. It’s really cool to be able to bring the entire thing down to just one `Code Block`.

---

<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:** [May 18, 2018, 2:23pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/24 "2018-05-18T14:23:04Z")

</div>

Move the contents of the variable into the spot it is called in the function. This quickly turns into the ‘black box’ which is hard to revisit though.

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [May 21, 2018, 12:57pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/25 "2018-05-21T12:57:50Z")

</div>

The unchangeable nature of it is why I want to use it. Next to that, although exactly a problem in this case, there’s more calculation time.

---

<div class="post-metadata">

**Author:** ![AAU\_AdamPiaskowski](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AAU\_AdamPiaskowski](https://forum.dynamobim.com/u/AAU_AdamPiaskowski)\
**Post date:** [July 18, 2019, 4:05pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/26 "2019-07-18T16:05:53Z")

</div>

Hi Jonathan,

I know this is an old issue, but I am somehow still managing to fail this operation.

I tried both Dynamo 2.0 and 1.3.3, and neither work. I keep getting null values, even with the BoolMask filter.

Any ideas how I could resolve this, or use an alternative?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/a/aa4273b0967b397d7945c06fb0ba406435edaed3.png)  
/Adam

---

<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:** [July 18, 2019, 8:57pm UTC](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016/27 "2019-07-18T20:57:29Z")

</div>

Using the SpaceAnalysis package (released recently) might be a better option now.

[Previous page](https://forum.dynamobim.com/t/draw-shortestwalk-routes-on-the-surface/22016.md?page=1)
