& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
I searched around with no luck. So, to create a gable wall, the only way is to work out the profile and vertices?
Thanks in advance.
Solved! Go to Solution.
Dear Paper Plane,
Does this help?
http://thebuildingcoder.typepad.com/blog/2011/07/create-gable-wall.html
Please note that the sample external command CmdCreateGableWall discussed there is included in The Building Coder samples:
https://github.com/jeremytammik/the_building_coder_samples
It is therefore continously maintained and has been updated for more recent versions of Revit.
Cheers,
Jeremy
Thank you Jeremy.
I had thought there was a way like this:
First, ignore the detail of the wall profile, only create a rectangle wall;
Then, get IDs of the wall and a roof, attach these two using API.
Apparently it doesn't work this way.
Afaik, the top and bottom restriction of a wall can very well be specified by simply supplying an element id each.
However, afaik, these element ids must specify level elements, and these are resticted to being horizontal.
Ergo, no way to use these to specify a non-rectangular wall elevation profile.
Capisci?
Ciao,
Jeremy
Dear Harry,
Thank you for clarifying and adding your request.
I added both your and Paper_Plane's requests to the existing wish list item CF-180 [need to expose the "Attach Top/base" with API].
Please make a note of this number for future reference.
You are welcome to request an update on the status of this issue or to provide us with additional information at any time by submitting a new case quoting the wish list item number or this one.
Please also provide a business case to raise its priority:
This issue is important to me. What can I do to help?
This issue needs to be assessed by our engineering team, and prioritised against all of the other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.
I hope this helps.
Cheers,
Jeremy
Dear Mahmoud,
I added a note of your request to the wish list item.
Please provide your company details and a business case for it from your point of view as well.
Thank you!
Cheers,
Jeremy
I want to be able to create curved gable walls by creating curved walls and attaching top to the upper roof.
Thank you
I submitted an "idea" for this. Please vote for it!
Any updates on this?
So far it doesnt seem to be included within the 2020 API as far as i can see.
Attach Wall top to an element (not level) as you can do in the revit UI
Thank you for your vote! Not much more we can do about it right now, I'm afraid. Vote, vote, vote. Good luck!
For now the only thing we can do is delete and recreate floors in my case.
Hope the development team reckons this issues soon.
That is easy. Take a look at the ADN Xtra labs sample to create a little house, Lab2_0_CreateLittleHouse:
https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs2.cs#L42-L427
It creates four walls and attaches them to the bottom and top levels just as you request.
how can i solve this errors?
Impossible to say with zero information.
I would suggest working through the getting started material first of all to get a solid understanding of the basics of the Revit API and add-in architecture and then moving forward from there:
https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name