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

Hi Yogesh,

 

You should be using a 3d sketch, add a work point and use the sketch point from "p1" that you already have from the 2d sketch.

the SketchLine3D can then be used to create a path, if you wish to sweep the profile along the normal direction.

 

        Dim oSketch3d As Sketch3D
        oSketch3d = partDoc.ComponentDefinition.Sketches3D.Add

        Dim wp2 As Inventor.WorkPoint
        wp2 = oCompDef.WorkPoints.AddFixed(oTG.CreatePoint(0, 0, 1))

        Dim oLine As SketchLine3D
        oLine = oSketch3d.SketchLines3D.AddByTwoPoints(skp1, wp2, False, 1)

Regards,

Balaji

 



Balaji
Developer Technical Services
Autodesk Developer Network