CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Работа с custom axial shape tools

    Custom axial shape tool создаётся по кривой, построенной по точкам на плоскости. Общие атрибуты, например tool name и tool number, одинаковы для всех подтипов cutting tools. Ниже приведён пример создания custom axial shape tool в группе Spherical Mills.

    //C#
    //importer is an instance of IMTI_MachiningToolsImportLibrary
    var tool = importer.CreateCustomAxialShapeTool();
    tool.ToolGroup = TMTI_AxialToolGroup.tgSpherical;
    tool.OverallLength = 100;
    tool.SetName("My Custom Spherical Mill Tool");
    tool.SetIdentifier("s001");
    tool.SetTeethsCount(2);
    tool.SetMagazineNumber(1);
    tool.SetToolNumber(1);
    tool.SetUnits(TMTI_LinearUnits.luMillimeter);
    tool.SetDurability(70);
    tool.SetMaxPlungeAngle(90);
    
    var rcv = tool.BeginGeneratrix();
    TST2DPoint p = new TST2DPoint() {X = 1, Y = 1};
    TST2DPoint pc = new TST2DPoint() {X = 0.0359, Y = 7.3301};
    rcv.SetSpanType(TMTI_CurveSpanType.csfWorking);
    rcv.StartCurve(p);
    p.X = 6; p.Y = 5;
    rcv.ArcTo(pc, p, 6.4031);
    p.X = 6; p.Y = 25;
    rcv.CutTo(p);
    rcv.SetSpanType(TMTI_CurveSpanType.csfNonWorking);
    p.X = 6; p.Y = 30;
    rcv.CutTo(p);
    p.X = 7.5; p.Y = 40;
    rcv.CutTo(p);
    
    var toolings = tool.GetToolingPoints();
    toolings.ToolContactPointType = TMTI_AxialToolContactPointType.cpCustomPoint;
    toolings.ToolContactPointsCount = 1;
    
    toolings.ToolingPointCount = 1;
    toolings.ToolingPointType[0] = TMTI_AxialToolToolingPointType.tpCustomPoint;
    toolings.ToolingPointShift[0] = 1.5;
    toolings.ToolingPointLengthCorrectorNumber[0] = 1;
    toolings.ToolingPointRadiusCorrectorNumber[0] = 1;
    
    var cond = tool.GetCuttingConditions();
    cond.CuttingSpeedMode = TMTI_CuttingSpeedMode.csmRPM;
    cond.RotationsPerMinute = 100;
    cond.SpindleGearRange = 1;
    cond.RotationDirection = TMTI_RotationDirection.rdCW;
    cond.FeedUnits = TMTI_FeedUnits.perMinute;
    cond.FeedValue = 100;
    
    int tubesCount = cond.Coolant.TubeCount; //20
    cond.Coolant.TubeIsOn[0] = true;
    cond.Coolant.TubeIsOn[1] = false;
    cond.Coolant.TubeIsOn[2] = true;
    
    //after setting the properties, add this tool to your tool library instance
    

    Полученная кривая:

    Curve Result

    Результат выполнения кода:

    Cylindrical Mill

    Полезные ссылки

    • Работа с custom axial shape tools в интерфейсе CAM-системы
    • Подготовка окружения для Machining Tools Import
    • Примеры Machining Tools Import в GitVerse

    Далее

    • Работа с tool holder
    In this article