Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm close to a solution here but it's kicking my butt. I have a workplane that is on face and I need to project the edges of that face onto my sketch plane. I'm nearly there on this path, but am coming up just short of my desire. Maybe you know the solution or a better path, if you're willing to share I'm eager for a solution on this.
'current code
oWorkPlane = oCompDef.WorkPlanes.Item("FACE Plane") oSketch = oCompDef.Sketches.Add(oWorkPlane) oSketch.Name = "LP Sketch" oSurfaceBody = oCompDef.SurfaceBodies.Item(1) For i = 1 To oSurfaceBody.Faces.Count oFace = oSurfaceBody.Faces.Item(i) If oWorkPlane.Plane.DistanceTo(oFace.GetClosestPointTo(oWorkPlane.Plane.RootPoint)) = 0 And oWorkPlane.Plane.IsParallelTo(oFace) Then 'This fails to find the parallel feature For j = 1 To oFace.Edges.Count oSketch.AddByProjectingEntity(oFace.Edges.Item(j)) Next End If Next
[The plane & adjacent face I'm trying to project ]
Autodesk Inventor Certified Professional

Solved! Go to Solution.