# Sloped Roof

**URL:** <https://forum.dynamobim.com/t/sloped-roof/12552>\
**Category:** Revit\
**Created:** [June 19, 2017, 9:15am UTC](https://forum.dynamobim.com/t/sloped-roof/12552 "2017-06-19T09:15:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Mirtschin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jon_mirtschin/32/32711_2.png) [@Jon\_Mirtschin](https://forum.dynamobim.com/u/Jon_Mirtschin)\
**Post date:** [June 19, 2017, 9:15am UTC](https://forum.dynamobim.com/t/sloped-roof/12552/1 "2017-06-19T09:15:29Z")

</div>

Hi All.

Anyone have any ideas if it is possible to create a sloping roof using the API/Dynamo?

The roof won’t have a horizontal edge and is created using the user interface in revit using a slope arrow, as per first example here.  
[https://knowledge.autodesk.com/support/revit-lt/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/RevitLT-Model/files/GUID-98A54E99-6889-4BA6-8483-CE67990A49C7-htm.html](https://knowledge.autodesk.com/support/revit-lt/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/RevitLT-Model/files/GUID-98A54E99-6889-4BA6-8483-CE67990A49C7-htm.html)

I note these other relevant links.  
[https://forums.autodesk.com/t5/revit-ideas/api-access-to-create-amp-modify-slope-arrow/idi-p/6700081](https://forums.autodesk.com/t5/revit-ideas/api-access-to-create-amp-modify-slope-arrow/idi-p/6700081)  
[https://forums.autodesk.com/t5/revit-api-forum/create-slope-arrow-on-roof/m-p/4483375/highlight/true#M4734](https://forums.autodesk.com/t5/revit-api-forum/create-slope-arrow-on-roof/m-p/4483375/highlight/true#M4734)

Thanks in advance,

Jon

---

<div class="post-metadata">

**Author:** ![NicoleChuong](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nicolechuong/32/20573_2.png) [@NicoleChuong](https://forum.dynamobim.com/u/NicoleChuong)\
**Post date:** [June 19, 2017, 10:51am UTC](https://forum.dynamobim.com/t/sloped-roof/12552/2 "2017-06-19T10:51:00Z")

</div>

i just have had the trouble as you. i created a roof by using the node “Roof.ByOutlineTypeAndLevel” and it just FLAT. can’t be able to define slope to the roof boundaries.

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [June 19, 2017, 11:27am UTC](https://forum.dynamobim.com/t/sloped-roof/12552/3 "2017-06-19T11:27:09Z")

</div>

As many times before I put some links to Jeremy Tammik’s blog TheBuildingCoder:  
(short answer - it’s possible)

> **[Revit Answer Day and Creating a Roof](http://thebuildingcoder.typepad.com/blog/2015/09/revit-answer-day-and-creating-a-roof.html)**
>
> Today I'll highlight two items, plus an addendum for Kinjal and Carolina
> – Revit Answer Day
> – Creating a Roof
> – Setting FootPrintRoof Slope...

  

> **[Creating a Sloped Floor](http://thebuildingcoder.typepad.com/blog/2014/03/creating-a-sloped-floor.html)**
>
> Today, let's look at an interesting and overdue topic raised by the query on creating a sloped floor in the Revit API discussion forum, addressed with help from Jaap van der Weide and Joe Ye.Before getting to that, let me quickly mention some other...

---

<div class="post-metadata">

**Author:** ![Jon\_Mirtschin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jon_mirtschin/32/32711_2.png) [@Jon\_Mirtschin](https://forum.dynamobim.com/u/Jon_Mirtschin)\
**Post date:** [June 19, 2017, 11:43am UTC](https://forum.dynamobim.com/t/sloped-roof/12552/4 "2017-06-19T11:43:43Z")

</div>

Sorry, I can’t have been clear. I want a roof so creating a sloping floor doesn’t help. Unfortunately the API has no equivalent method of createslab that works with a roof type.

There are no horizontal edges on the roof objects I want to create (so it setting perimeter slopes won’t help). If you can post a dynamo script that create a roof with a roof slope arrow I look forward to seeing it.

Cheers,

Jon

---

<div class="post-metadata">

**Author:** ![TeoBlack](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@TeoBlack](https://forum.dynamobim.com/u/TeoBlack)\
**Post date:** [November 5, 2018, 1:09am UTC](https://forum.dynamobim.com/t/sloped-roof/12552/5 "2018-11-05T01:09:08Z")

</div>

I had a look at the links too, there is C# coding. any Python examples please?
