Message 1 of 1
The ”Sketch3d.IntersectionCurves.Add()” method of getting an intersection curve

Not applicable
04-24-2017
06:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to get an intersection curve of a surface and a workplane, which can be achieved manually in Inventor, but I cannot achieve it through API.
Then I checked some post in this forum and I found some solutions. A solution may be useful as following, which comes from the post “https://forums.autodesk.com/t5/inventor-customization/sketch-using-curve-generated-by-intersection-o...”
The method mentioned as following:
Dim oIntersectionCurve1 As IntersectionCurve Set oIntersectionCurve1 = oSketch3d.IntersectionCurves.Add(oSurf1.SurfaceBodies.Item(1), oBlueBoxBody)
But when I used the method, an error arise as “Compile error: User-defined type not defined.”, which can be seen in the following figure.
My Inventor edition is "Autodesk Inventor Professional 2012". I don’t know the reason. Thank you very much.