# Dynamo Topo Script

**URL:** <https://forum.dynamobim.com/t/dynamo-topo-script/9857>\
**Category:** Uncategorized\
**Created:** [February 23, 2017, 2:33am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857 "2017-02-23T02:33:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [February 23, 2017, 2:33am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/1 "2017-02-23T02:33:01Z")

</div>

Hi, this script is to draw detail lines where a topo was cut with a section or an elevation. It seems if the topo is to big or complicated it will freeze up the system and take forever to process. Is there a way to get the script to run better?

[Existing Ground Lines\_Sections.dyn](https://forum.dynamobim.com/uploads/short-url/etaJqcCin6Yk0weePIOWsoaUa8C.dyn) (11.3 KB)

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3fb85ef56acd9aad89aa670054ab391da8a2c756.png)\<a class=“attachment”

---

<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:** [February 23, 2017, 2:49am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/2 "2017-02-23T02:49:47Z")

</div>

I would run it on a smaller set of views for faster processing time.

One idea: filter out sections where the crop region doesn’t see the topo.

Another idea: filter out working views.

Another another idea: Use a different line style for your topo cut lines and filter out views which already have those an element on them (to prevent redrawing the same element twice after you add new views down the line).

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [February 23, 2017, 4:01am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/3 "2017-02-23T04:01:48Z")

</div>

Thanks Jacob, all great ideas

I had a topo that was over 200 meters in the one instance. took the script so long to draw the line in one view. Not sure if theres anything i can do about that?

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [February 23, 2017, 7:08am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/4 "2017-02-23T07:08:38Z")

</div>

Hi, Have you tried implementing Mesh.ToPolysurface from spring nodes and running an intersection with the planes and the resulting polysurface?

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [February 23, 2017, 8:17pm UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/5 "2017-02-23T20:17:18Z")

</div>

Sounds promising Jostein, getting myself confused though. I’m lost with running an intersection with planes for a poly surface. Cant find a node for that. What ive given a go below which is still a long process

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

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [February 23, 2017, 9:45pm UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/6 "2017-02-23T21:45:38Z")

</div>

Yeah, it’ll work if your topo isn’t too large and detailed relative to you RAM.

This might be better done as a zero touch node in C# so it process faster.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [February 24, 2017, 1:39am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/7 "2017-02-24T01:39:11Z")

</div>

I was thinking if it only draws the line with in the constraints of the view window then that will be less processing too. Just not sure how to constrain the intersection with plane to the view window.

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [February 24, 2017, 1:56am UTC](https://forum.dynamobim.com/t/dynamo-topo-script/9857/8 "2017-02-24T01:56:09Z")

</div>

You can use Python and CropShapeManager (or something like that) to get the boundaries of the view crop. From there it shouldn’t be too much to get the intersection.
