How to flip Roof surface?

How to flip Roof surface?

Anonymous
Not applicable
2,569 Views
3 Replies
Message 1 of 4

How to flip Roof surface?

Anonymous
Not applicable

Hi,

 

1. I created Roof with external layer Glass and internal side so we can see the better orientation.

Then using API I created roof using create method and then modify using SlabShapeEditor to adjust point coordinates. However, I notice is shape is expanding upwards orientation is always wrong. How to flip the roof surface?

 

 

2019-09-17 08_37_15-.png

 

2019-09-17 08_31_21-Edit Assembly.png

 

2. Also I there any method to automatically flip walls for a model with spaces if there is a wrong orientation? Currently, I do it manually by selecting walls and hit space. If I have a model with spaces we should have this option in API.

0 Likes
2,570 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Better to submit separate unrelated questions in separate threads.

 

For flipping the roof, first explore how to achieve that manually in the user interface. By analysing what that actually modifies in the database, you can determine how to achieve the same programmatically:

 

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

 

For flipping the wall orientation, I think you can retrieve the wall location line, flip its direction, and assign the flipped line back to the wall, saying wall.Location = flipped_location_line.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

Anonymous
Not applicable

@jeremytammik  OK will do it next time and log them separately.

1. Roof - I run lots of test with different point orientations. Unlike walls, it does not matter at all. I guess I come across Revit Limitation - So we can not have a roof with obtuse angle ( angle > 90 deg) that have correct roof orientation. 

Can you please confirm is this is correct?

2019-09-17 10_39_14-Topologic_Test.pptx - PowerPoint.png2019-09-17 10_39_37-Topologic_Test.pptx - PowerPoint.png2019-09-17 10_40_26-Topologic_Test.pptx - PowerPoint.png  2019-09-17 10_42_25-Rooftest.3dm (14 KB) - Rhinoceros 5.0 Commercial.png

 

which means this will not be possible to have correct in Revit... as lower half will always be wrong

2019-09-17 10_50_09-Autodesk Revit 2018.3 - [3D View_ {3D} - 000000_BHE_SAM_ver06e_2018testSpecial.r.png

 

2. walls - this is clear, it is easy to flip, just we need to know which one we want to flip. I believe there should be a function in Revit API that does this for us if we have rooms or space but I guess this is a new feature which will never happen so  we have to do it ourselves,

2019-09-17 10_52_48-Topologic_Test.pptx - PowerPoint.png

 

 

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

For the roof: can you achieve the desired effect manually in the user interface? That is always the first question. If you can, we can find a way to do it programmatically as well. If not, you can file a wish list item for it in the Revit Idea Station.

  

For the wall flipping: if you would like to implement such a command together with a small sample model containing a handful of rooms and spaces, I will gladly assist and clean it up for you for sharing with the community.

 

Very nice pictures, by the way!

 

Later, second thoughts on the roof: I now possibly have an idea what you actually mean. Do you have a roof with a compound structure, and you would like the bottom side of the compound structure to face upwards instead of downwards? If so, maybe you can solve this by implementing two similar but reversed compound structures for the two cases. I can well imagine that Revit is intentionally preventing the use of an upside-down compound roof structure, for many reasons. 

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes