Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancelar
Mostrando los resultados de 
Mostrar  solo  | Buscar en lugar de 
Quiere decir: 

Face.GetExtendedFaceEdgeLoops - a method that returns the whole face boundaries

Face.GetExtendedFaceEdgeLoops - a method that returns the whole face boundaries

Please add the method GetExtendedFaceEdgeLoops (or GetExtendedFaceEdgesAsCurveLoops) to the Face class.

The method should return the boundaries of the union of all the faces of all the elements that define the wall the face belongs to.

 

The method called with the large face on the snapshot below (the one the red boundary was created from) and with the smaller faces on the left and on the right, should return the same boundaries including one outer loop and three inner loops.

 

The snapshot shows the red lines representing the useless face boundary obtained with Face.EdgeLoops (or Face.GetEdgesAsCurveLoops) and the useful green boundary obtained by manually drawing it.

stefanomenci_0-1622644705227.png

I can't think of any reason why an add-in would intentionally use the incorrect red boundary.

I can't think of one reason why an add-in would be unhappy-but-ok using the incorrect red boundary: it's easy and it's close enough.

I can think of many many many reasons why an add-in would use the correct boundary extended to the green line: it is correct.

 

A simple case like the one in the snapshot can be managed by playing with Wall.GetGeneratingElementIds(), but I am afraid that such an algorithm would be very brittle.

2 Comentarios
stefanome
Collaborator

I would like to add two considerations:

  1. The same method should return all the boundaries also in more complex cases like with a coping similar to the one highlighted in the snapshot below.
  2. Returning the boundaries would be helpful, but even better would be returning one bounded surface, because in the case of non planar surfaces, having both the surface and the boundaries would be more powerful than having only the boundaries. For example it would allow things like this SortCurveLoop.

stefanomenci_0-1623076154967.png

 

Thank you for the additional details, @stefanome . Great post!

Can't find what you're looking for? Ask the community or share your knowledge.

Enviar idea  

Autodesk Design & Make Report