23 lines
825 B
C#
23 lines
825 B
C#
using Autodesk.AutoCAD.Geometry;
|
|
using CadParamPluging.Common;
|
|
using CadParamPluging.Domain.Models;
|
|
using CadParamPluging.Cad.Drawers;
|
|
|
|
namespace CadParamPluging.Cad
|
|
{
|
|
public class RingRawFreeForgeCenterPunchGenerator : ITemplateDrawingGenerator
|
|
{
|
|
public string TemplateKey => TemplateKeyBuilder.Build("毛料态", "自由锻", "环形", "中心冲孔");
|
|
|
|
public FeatureDrivenDrawer.ExpectedDrawingSize CalculateExpectedSize(ParamBag bag, TemplateParams templateParams)
|
|
{
|
|
return FeatureDrivenDrawer.CalculateExpectedSize(bag, "环形");
|
|
}
|
|
|
|
public void Draw(CadContext ctx, ParamBag bag, TemplateParams templateParams, Point3d center, double scaleFactor)
|
|
{
|
|
RingRawFreeForgeCenterPunchDrawer.Draw(ctx, bag, center, scaleFactor);
|
|
}
|
|
}
|
|
}
|