- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
Is there a way to treat an intersection curve similar to an edge? For example, an edge you can use edge.Evaluator.GetParamExtents(.....) and edge.StartVertex. I need to find these values but the only way I have found to do this is by checking the sketchEntity3d.Type in each intersection curve and then casting the sketchEntity3d to that type. This is a problem because I can have multiple Types and I need to keep all the entities in the same list. Below I'm only finding sketchSpline3d types. Is there a generic type that I can make each entity? Or is there a way to force the entity to be a spline regardless of the type? It seems like there's a way to convert the intersection curve into some kind of path that I can extract the data from. I tried converting it to a ProfilePath3d and Path but to no prevail.
Sketch3D sketch3d = oCompDef.Sketches3D.Add();
IntersectionCurves iCurves = sketch3d.IntersectionCurves;
List<SketchSpline3D> sketchSplineList = new List<SketchSpline3D>();
SketchSpline3D spline = null;
foreach (IntersectionCurve intersectCurve in iCurves)
{
foreach (SketchEntity3D sketchInt in intersectCurve.SketchEntities)
{
if (sketchInt.Type == ObjectTypeEnum.kSketchSpline3DObject)
{
spline = (SketchSpline3D)sketchInt;
sketchSplineList.Add(spline);
}
}
}
Solved! Go to Solution.