I’d like to create a macro like this so that pragmatic users can quickly trace spline sketches from creative people using tangent arcs.
Perhaps there’s already a ready-made solution for this in SolidWorks?
For myself, I have formulated the task as follows:
Approximate an open 2D SketchSpline with a chain of tangent arcs using recursive biarc subdivision by maximum deviation tolerance.
Constraints needed:
Tolerance = 0.05 mm
MaxRecursionDepth = 20
MaxArcCount = 10000
MinArcLength = 0.001 mm
If a spline segment contains an inflection point, a single biarc may approximate it poorly. But recursive division will solve this.
If the original spline has self-intersections, this is a problem.
ArtCAM tool equivalent:
Spline / vector → Fit Arcs by tolerance
