BooleanOperationsUtils.ExecuteBooleanOperation InvalidOperationException Casue

BooleanOperationsUtils.ExecuteBooleanOperation InvalidOperationException Casue

kimhjDGFZX
Contributor Contributor
764 Views
1 Reply
Message 1 of 2

BooleanOperationsUtils.ExecuteBooleanOperation InvalidOperationException Casue

kimhjDGFZX
Contributor
Contributor

Hi All,

 

BooleanOperationsUtils.ExecuteBooleanOperation(), When I use this method, I often get an InvalidOperationException.

 

I would like to know if there are specific criteria for causing that error.

For example, it occurs when elements intersect at an angle below a certain angle, etc.

 

I hope there are rules for this or some documentation I can refer to.

thanks for reading!

0 Likes
Accepted solutions (1)
765 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

Sorry about that. It has been mentioned before that ExecuteBooleanOperation can run into issues. Unfortunately, afaik, there is no list of the exact criteria which might cause a problem. Various ways of handling the situation and some possible workarounds have been discussed here in the past. You can search for ExecuteBooleanOperation or just Boolean to find some of them:

   

   

The development team are aware of these issues. This is one of the more exhaustive discussions on the topic, ongoing ever since 2017, including a suggestion for a non-trivial workaround:

   

    

If you would like to provide a complete minimal reproducible case, I can share that with the development team for further analysis:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes