Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to compute the intersection between two solids (one coming from a wall, one I'm creating myself withCreateExtrusionGeometry). It works fine for the majority of walls, but on some, ExecuteBooleanOperation throws an InvalidOperationException :
GeometryElement geometryElement;
using (var options = new Options())
{
geometryElement = wall.get_Geometry(options);
}
Solid wallSolid = null;
foreach (GeometryObject geometryObject in geometryElement)
{
wallSolid = geometryObject as Solid;
if (null != wallSolid) break;
}
using (Solid box = GeometryCreationUtilities.CreateExtrusionGeometry(curveloops,
XYZ.BasisZ, height))
{
intersection = BooleanOperationsUtils.ExecuteBooleanOperation(box, wallSolid,
BooleanOperationsType.Intersect);
}The only characteristic of the walls in question is that they are not parallel to the X and Y axes.
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Solved! Go to Solution.