Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

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

Anonymous

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

Anonymous
Not applicable

        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.

111.png

0 Likes
Reply
257 Views
0 Replies
Replies (0)