# Get section line curve

**URL:** <https://forum.dynamobim.com/t/get-section-line-curve/62369>\
**Category:** Uncategorized\
**Created:** [March 30, 2021, 7:31pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369 "2021-03-30T19:31:49Z")\
**Posts on this page:** 20\
**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:** [March 30, 2021, 7:31pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/1 "2021-03-30T19:31:49Z")

</div>

Hi, could someone please show me how to get the curve of a section line so I can move the section?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/6/d65f7e4496bc7c02620b0463da61858203eace45.jpeg)

there is this post but I cant see it and thought there might be a way now?

> [@Curve from Section Line?](https://forum.dynamobim.com/t/curve-from-section-line/1630):
>
> Is there a way to select the Section line in Revit and convert it into a curve in Dynamo?

---

<div class="post-metadata">

**Author:** ![simon\_murphy1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/simon_murphy1/32/101536_2.png) [@simon\_murphy1](https://forum.dynamobim.com/u/simon_murphy1)\
**Post date:** [March 30, 2021, 8:01pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/2 "2021-03-30T20:01:08Z")

</div>

I don’t think is possible there are no Properties in the API for getting location line of sections. Also there are no methods for setting a section view location exposed in the Revit API.

[https://www.revitapidocs.com/2020/0d37c868-8b5e-3ebd-d037-15b3c993f0d6.htm?section=methodTableToggle](https://www.revitapidocs.com/2020/0d37c868-8b5e-3ebd-d037-15b3c993f0d6.htm?section=methodTableToggle)

Edit: Perhaps you can create a new view in the location you want a delete the old one automatically in a Dynamo script. This is kinda tricky though.

---

<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:** [March 30, 2021, 8:26pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/3 "2021-03-30T20:26:28Z")

</div>

Tried to make a new section using the created one and transforming it but got this error below 🤔 Think I need the coordinate system of the center of the surface patch. I dont know how to get the coordinate system pointing in the correct direction off the surface

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

Used this post for the info

> [@Reverse "SectionView.ByCoordinate SystemMinPointMaxPoint"](https://forum.dynamobim.com/t/reverse-sectionview-bycoordinate-systemminpointmaxpoint/33851):
>
> Hello, I want to get the min and max coordinates and the view depth of a section view thus the reverse of this node. [sectionview] thnks

---

<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:** [March 30, 2021, 9:42pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/4 "2021-03-30T21:42:30Z")

</div>

… I dono

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

---

<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:** [March 30, 2021, 9:57pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/5 "2021-03-30T21:57:48Z")

</div>

off to the funny farm

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

---

<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:** [March 30, 2021, 10:32pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/6 "2021-03-30T22:32:49Z")

</div>

Also tried this website method, no luck

> **[Automate Section Views for Wall Documentation using Dynamo - AEC TECHY](http://aectechy.com/automate-section-views/)**
>
> This post will walk you through the steps of creating individual aligned sections for documentation of walls using Dynamo.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/17d987ec35e10c0110953687e3d37f0988aa6c54.png)

---

<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:** [March 30, 2021, 10:43pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/7 "2021-03-30T22:43:57Z")

</div>

have I approached this all wrong because the view bounding box dosn’t relate to the plan view?

---

<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:** [March 31, 2021, 12:50am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/8 "2021-03-31T00:50:05Z")

</div>

Got it to work but what I dont understand is why these min and max points wont work with it. They seem to appear correctly where youd want them in dynamo

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

---

<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:** [March 31, 2021, 12:57am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/9 "2021-03-31T00:57:11Z")

</div>

Well thats super confusing. The blue is the min and max that created the view. The red is what I thought would make the view from the crop box. So somethings totally off axis I dont understand yet

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

---

<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:** [March 31, 2021, 1:29am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/10 "2021-03-31T01:29:04Z")

</div>

Well this works. Why, I dont know. its slightly off on the location but Ill figure out why in time. If anyone ends up interested in this.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d93b3b111045852bfef707a25eadd7b886c1fed4.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7d4435b4a1f9e0d8d7168b5d1f5dfdb797bf969f.png)

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [March 31, 2021, 1:39am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/11 "2021-03-31T01:39:36Z")

</div>

@vanman ElementTranformUtils 😉

 ![t1wKiHAVUe](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/5498962ad53dc49d330d23029a58abc8edce6183.gif)  
 ![Section to Curve in Active View_2021-03-31_02-38-25](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/6/e66fd775c2fc4bdb4bf5a4b73db64724c48abb87.png)  
[Move Section By Curve in Active View.dyn](https://forum.dynamobim.com/uploads/short-url/eaBgjVfGKqpdnP1blYIVUgEVIuc.dyn) (43.9 KB)

---

<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:** [March 31, 2021, 2:17am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/12 "2021-03-31T02:17:09Z")

</div>

There he is! The master at it. Thanks so much! I’m gonna loose my job if I dont get back to normal work soon 🤣 but looking forward to giving this a go! Will be so much easier. Ill get to keep the views templates and things that it copys through with too 🥳

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [March 31, 2021, 8:00am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/13 "2021-03-31T08:00:05Z")

</div>

With the _Genius Loci_ package, this only requires a few nodes :

 ![Move ViewSection](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/1/c19db6368adef313f271f4d750169182fd2508a8.png)  
[Move ViewSection.dyn](https://forum.dynamobim.com/uploads/short-url/jYS283qDsqqZfEjMXFj2NU3cikS.dyn) (16.0 KB)

---

<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:** [March 31, 2021, 10:31pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/17 "2021-03-31T22:31:29Z")

</div>

Defeated, not sure why its not moving it to the correct location. The blue lines in revit look like the right place. Alban gets that error

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

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [March 31, 2021, 11:51pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/18 "2021-03-31T23:51:52Z")

</div>

Is the node trying to move the view in the Active view still or is it a bit lost? Try removing the section of python that defines what happens if the code is successful, and put the ElementTransforUtils command in the ‘top’ level of code. Then you can see what errors occur.

If still an issue, I am in the office this afternoon and will post an example.

---

<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:** [March 31, 2021, 11:57pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/19 "2021-03-31T23:57:52Z")

</div>

It moved the section. Just somewhere crazy I cant find it I think

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [March 31, 2021, 11:59pm UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/20 "2021-03-31T23:59:11Z")

</div>

Hmm sounds like a co-ordinate system issue then. What happens if you remove the transforms?

---

<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:** [April 1, 2021, 12:12am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/22 "2021-04-01T00:12:49Z")

</div>

Ok I think its something to do with this metric conversion here. Need to convert the transformed geometry length maybe

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e95d7e4a25934c604d4f00f763a0d8d18916a370.png)

This is it! Just need to test if your handy move ElementTransform accepts lists 🙂

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31bf6e65313db5d68a4df587555b7a23166e18a3.png)

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [April 1, 2021, 12:31am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/23 "2021-04-01T00:31:33Z")

</div>

Should be an easy tweak 😉

---

<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:** [April 1, 2021, 12:33am UTC](https://forum.dynamobim.com/t/get-section-line-curve/62369/24 "2021-04-01T00:33:41Z")

</div>

epp for me or you 🤣 I’ve dabbled in trying to get python to take lists before with no luck 🤪

[Next page](https://forum.dynamobim.com/t/get-section-line-curve/62369.md?page=2)
