feat: Add new drawers for ring raw free forge parts with and without center punch.

This commit is contained in:
sladro 2026-02-12 13:56:15 +08:00
parent e759b0d267
commit 004a6a6e28
2 changed files with 18 additions and 4 deletions

View File

@ -228,9 +228,16 @@ namespace CadParamPluging.Cad.Drawers
// 7. Min Wall Thickness
var minWallThickness = bag.GetDoubleOrNull(FeatureDrivenDrawer.KeyMinWallThickness);
if (minWallThickness.HasValue && minWallThickness.Value > 0 && xInnerRight.HasValue)
if (minWallThickness.HasValue && minWallThickness.Value > 0)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, xInnerRight.Value, ox + W, oy, minWallThickness.Value);
if (xInnerRight.HasValue)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, xInnerRight.Value, ox + W, oy, minWallThickness.Value);
}
if (xInnerLeft.HasValue)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, ox, xInnerLeft.Value, oy, minWallThickness.Value);
}
}
// 8. Part Contour (Machined Parameters present)

View File

@ -261,9 +261,16 @@ namespace CadParamPluging.Cad.Drawers
// 7. Min Wall Thickness
var minWallThickness = bag.GetDoubleOrNull(FeatureDrivenDrawer.KeyMinWallThickness);
if (minWallThickness.HasValue && minWallThickness.Value > 0 && xInnerRight.HasValue)
if (minWallThickness.HasValue && minWallThickness.Value > 0)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, xInnerRight.Value, ox + W, oy, minWallThickness.Value);
if (xInnerRight.HasValue)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, xInnerRight.Value, ox + W, oy, minWallThickness.Value);
}
if (xInnerLeft.HasValue)
{
FeatureDrivenDrawer.DrawMinWallThicknessNote(ctx, ox, xInnerLeft.Value, oy, minWallThickness.Value);
}
}
// 8. Part Contour (Machined Parameters present)