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

AddByFillet

In PlanarSketch, I wish to create a fillet between two touching sketch lines. Errors out!!!

ArcAsFillet.png

 

Code is:

 

            Dim startWorkPoint As WorkPoint = m_compDef.WorkPoints.AddFixed(newStartPoint, True)
            Dim pathSketch As PlanarSketch = pathSketchCurve.Parent
            Dim pathSketchLine As SketchLine = pathSketchCurve
            Dim skpt1 As SketchPoint = pathSketch.AddByProjectingEntity(startWorkPoint)
            Dim addedSketchLine As SketchLine = pathSketch.SketchLines.AddByTwoPoints(skpt1, pathSketchLine.StartSketchPoint)
            Dim skarc As SketchArc = pathSketch.SketchArcs.AddByFillet(addedSketchLine, pathSketchLine, m_bendradius, addedSketchLine.EndSketchPoint.Geometry, pathSketchLine.StartSketchPoint.Geometry)

            Dim path As Inventor.Path = m_compDef.Features.CreatePath(addedSketchLine)
            Dim profile As Profile = profileSketch.Profiles.AddForSolid
            CreateNewSweep(profile, path, PartFeatureOperationEnum.kJoinOperation)

In interactive mode, 'pathSketchLine' is somehow not selectable, although its part of the same sketch.

 

Attached is the full file.

 

Any clue?