This article explains how to create a Toolpath entity from scratch.
Toolpath.Motion[] motions = new Toolpath.Motion[]
{
new Toolpath.LinearMotion(new Point3D(0, 0), new Point3D(10, 0), motionType.G00, 1000, 500),
new Toolpath.LinearMotion(new Point3D(10, 0), new Point3D(10, 0, -5), motionType.G01, 1000, 100),
new Toolpath.CircularMotion(new Plane(new Point3D(0, 0, -5), Vector3D.AxisX, Vector3D.AxisY), 10, new Interval(0, Math.PI/2), motionType.G03, 1000, 100),
new Toolpath.LinearMotion(new Point3D(0, 10, -5), new Point3D(0, 10), motionType.G00, 1000, 500),
};
Toolpath tp = new Toolpath(motions);
design1.Entities.Add(tp, Color.Blue);
design1.ShowCurveDirection = true;
Comments
Please sign in to leave a comment.