BooleanOperationsUtils.ExecuteBooleanOperation problems

BooleanOperationsUtils.ExecuteBooleanOperation problems

Anonymous
Not applicable
2,048 Views
5 Replies
Message 1 of 6

BooleanOperationsUtils.ExecuteBooleanOperation problems

Anonymous
Not applicable

ExecuteBooleanOperation throws an InvalidOperationException on certain solids. I am not sure if there is something wrong with these solids or if it is a simmilar problem to Boolean Operation Fail and BooleanOperationsUtils.ExecuteBooleanOperation throws InvalidOperationException. The solids of the family object in the attachements are the only solids where this problem occurred so far. 

 

I was wondering if there are ways to work around this problem? How I can eliminate these geometric inaccuracies or if there is a alternative way to create a intersection between two solids.

 

 

0 Likes
Accepted solutions (1)
2,049 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk
Accepted solution

If you think the solids are simple and valid and the result has no anomalies, you might want to submit a minimal reproducible case for the development team to analyse:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Cheers,

 

Jeremy



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

Message 3 of 6

FAIR59
Advisor
Advisor

it is not a API problem, though it's a excellent example of the tiny differences that can cause the join to fail. The uprights of the chair are in the wrong position. Correct this and the solids will join.

 

chair_join.PNG

Message 4 of 6

Anonymous
Not applicable

Is there a way to fix this and other imperfections with the revit API or should I create my own algorithm to fix imperfections in the solids? 

0 Likes
Message 5 of 6

jeremytammik
Autodesk
Autodesk

Dear Kay,

 

Afaik, the Revit API does not provide any such functionality.

 

If you are able to create it yourself, I would be extremely interested in seeing it, and I am sure many others would as well.

 

Thank you!

 

Cheers,

 

Jeremy



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

Message 6 of 6

Xinaps
Explorer
Explorer

I dont think the uprights are the problem, because of the FamilyInstance in the atttachements. This is the most simple example that I found to have this problem and it contains just one single sweep. 

I also found that this exception is not only thrown by the solids of FamilyInstances,but also some Curtain Walls.

 

I tried to remove small gaps between edge / points (gaps smaller as "0.1*Application.ShortCurveTolerance"), but this this didn't solve the problem.

0 Likes