Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Faces of the room from solid clockwise and counter-clockwise.

Anonymous

Faces of the room from solid clockwise and counter-clockwise.

Anonymous
Not applicable


Is there a way in revi api to represent the faces of the room from solid clockwise or counterclockwise. If there are such methods or algorithms this would help in solving my problem.

I need to arrange points on the sides of the room at a certain distance, then clockwise, then counterclockwise. For this it is necessary to sort out the faces

0 Likes
Reply
729 Views
2 Replies
Replies (2)

jeremytammik
Autodesk
Autodesk

Dear Vadim,

 

Thank you for the interesting query.

 

You will certainly simplify your problem if you consider the 2D problem of a planar curve loop, e.g., representing the boundary edges of your room, and concentrate on sorting that.

 

You can easily create such a curve loop from the bottom edges of all your faces, and create relationships between each face and its associated curve loop segment.

 

The Building Coder dealt with the task of sorting curve loop edges in 2015:

 

http://thebuildingcoder.typepad.com/blog/2015/01/autodesk-internship-in-california-and-sorting-edges...

 

My different approaches are still available from the RomEditorApp GitHub repository:

 

https://github.com/jeremytammik/RoomEditorApp

 

The ExporterIfcUtils also provides utility methods addressing this:

 

http://thebuildingcoder.typepad.com/blog/2015/01/exporterifcutils-curve-loop-sort-and-validate.html

 

I discussed more curve loop sorting issues to support creating a DirectShape from a Room:

 

http://thebuildingcoder.typepad.com/blog/2018/01/directshape-topics-and-happy-new-year.html#9 

 

I hope this helps.

 

Please let us know how you end up solving this.

 

You have raised several interesting questions here; it is time that some of the answers are finalised and published for posterity, I think.

 

Thank you!

 

Cheers,

 

Jeremy

 



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

0 Likes

Anonymous
Not applicable

Hi, this is just one of the unresolved issues in my project. Another problem with the doors. Do you have any thoughts on this issue?

https://forums.autodesk.com/t5/revit-api-forum/element-from-face-and-from-selection-pickobject/td-p/...

 

Is it possible to work with such families of doors or should they be tasted? The thing is that I need to choose a room and a door. At 15 cm from the door to arrange the family and further on the walls at the same distance to arrange the same families. I have a problem comparing the doors that I got from the FindInserts method from the faces of the solid and the door from Selection.PickObject.

for me it is a complex project, since before I had no experience with working with Revi. I really hope for your help. Thank you

0 Likes