Sloped Roof

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

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-api-forum/create-slope-arrow-on-roof/m-p/4483375/highlight/true#M4734

Thanks in advance,

Jon

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.

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


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

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