Easy way to fillet two sketch lines?

Easy way to fillet two sketch lines?

CadUser46
Collaborator Collaborator
1,173 Views
1 Reply
Message 1 of 2

Easy way to fillet two sketch lines?

CadUser46
Collaborator
Collaborator

I understand how to create an arc but is there a way to create two lines then add a fillet to them?  ie Is there a way where the API just understands how to break the conincident points and insert the fillet without needing to be told where the end points are in space?

 

I say this because i have lines going in all directions and i'd rather not have to do pythagorus to calculate the offsets at each intersetion.  Just select two lines, add a fillet at this radius?

 

    Dim saArc As SketchArc
    Set saArc = oSketch.SketchArcs.AddByFillet(oLine1, oLine2, 0.5, oLine1.Geometry, oLine4.Geometry)

or

    Set saArc = oSketch.SketchArcs.AddByFillet(oLine1, oLine2, 0.5, oLine1.startsketchpoint, oLine4.endsketchpoint)

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
Accepted solutions (1)
1,174 Views
1 Reply
Reply (1)
Message 2 of 2

philippe.leefsma
Alumni
Alumni
Accepted solution

Hi

 

Currently there is no direct way to achieve this, you will need to rely on some additional custom logic to handle this feature. The existing methods to create an arc are exposed in the API Help Files, please refer to this document ofr more details:

 

AddByCenterStartEndPoint Method that creates a new sketch arc defined by a center point and two points defining the start and end. The input points can be a combination of existing sketch points or Point2d objects. In the case where a sketch points is input, the arc will be attached to the sketch point. The sweep direction of the arc from the start to end point is determined by the CounterClockwise argument. The radius of the arc is determined by the start point. If the input for the start point is a sketch point, the arc will be tied to the sketch point. The second point, whether it is a sketch point or coordinate point defines the sweep of the arc. In the case where a sketch point is input and it is on the arc, the arc will be tied to the sketch point.
AddByCenterStartSweepAngle Method that creates a new sketch arc using the input point and angles.
AddByFillet Method that creates a new sketch arc as a fillet between two sketch entities.
AddByThreePoints Method that creates a new sketch arc that passes through the three input points.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network