InternalValidationError : err == AcGe::kXXOk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This call to a Plane object's IntersectWithCurve function (red line in the code) fails with error message: InternalValidationError : err == AcGe::kXXOk
This failure seems similar to what was described in this post and apparently fixed in a January 2016 release. I'm running the 2.0.2016 build. Any suggestions on whether this is an issue in IntersectWithCurve's implementation, or whether i'm messing up the call somehow? Thanks.
Ptr<Product> product = app->activeProduct(); Ptr<Design> design = product; Ptr<Component> rootComponent = design->rootComponent(); Ptr<Selections> activeSelection = ui->activeSelections(); Ptr<Base> selection = activeSelection->item(0)->entity(); if (Ptr<ConstructionPlane>(selection)) { Ptr<ConstructionPlane> plane = selection; Ptr<Sketches> sketches = rootComponent->sketches(); if (!sketches) return false; Ptr<Sketch> sketch = sketches->item(0); if (!sketch) return false; Ptr<SketchCurves> sketchCurves = sketch->sketchCurves(); if (!sketchCurves) return false; Ptr<SketchFittedSpline> spline = sketchCurves->sketchFittedSplines()->item(0); if (!spline) return false; Ptr<ObjectCollection> points = plane->geometry()->intersectWithCurve(spline->geometry()); if (!points) return false; }