Files
wg_cpso/CaeKnowledge/Data/Cutter.cs
2026-03-25 18:20:24 +08:00

66 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LiteDB;
namespace CaeKnowledge.Data
{
public struct Cutter
{
[BsonCtor]
public Cutter(ObjectId id)
{
Id = id;
Cid = null;
Cname = null;
Description = null;
Code = null;
Material = null;
Number = 0;
Diameter = 0;
ToolLength = 0;
FluteLength = 0;
Flute = 0;
HelixAngle = 0;
ArcRadius = 0;
}
// 数据库Id
public ObjectId Id { get; set; }
// 刀具库号 主键 方便后续调用
public string Cid { get; set; }
// 刀具牌号 可读名称
public string Cname{ get; set; }
// 刀具描述
public string Description{ get; set; }
// 刀具代码
public string Code{ get; set; }
// 刀具材料
public string Material{ get; set; }
// 刀号T - 用来标识切削工具在数控编程中的编号其命名规则一般为T+数字。
public int Number{ get; set; }
// 刀具直径D
public double Diameter{ get; set; }
// 刀具长度TL
public double ToolLength{ get; set; }
// 刃长FL
public double FluteLength{ get; set; }
// 刀刃数F
public int Flute{ get; set; }
// 螺旋角
public double HelixAngle{ get; set; }
// 环形刀圆角半径
// 添加时间2026-3-18由西工大权琳雅提供
public double ArcRadius { get;set; }
}
}