
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an assembly with two parts, and want to project a (2D) sketch on part1 into a new 3D sketch on part2 using inventors API. Here is a portion of the code I'm trying to use, I've been able to create the 3D sketch on part2 but haven't successfully projected the sketch from part1 into the one in part2:
Dim oSketch As Sketch3D = Pt2Def.Sketches3D.Add()
Dim oSketchProxy As Sketch3DProxy
oOcc.CreateGeometryProxy(oSketch, oSketchProxy)
Dim oProjectionEntity As SketchEntity3D = oSketchProxy.AddByProjectingEntity(pt1Def.Sketches.newSketch.sketch1Entity)
for clarity, sketch1Entity is a Sketch Entity in the 2D sketch on part 1.
Any advice on how to fix this issue or a different approach would be greatly appreciated.
Solved! Go to Solution.