From 50a8e275dd0aaa781ffe0375caee70a0536f5bd3 Mon Sep 17 00:00:00 2001 From: sladro Date: Thu, 12 Feb 2026 11:09:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E7=94=B1?= =?UTF-8?q?=E9=94=BB=E6=AF=9B=E6=96=99=E6=97=A0=E5=9C=86=E5=A4=B4=E5=92=8C?= =?UTF-8?q?=E6=9C=89=E5=9C=86=E5=A4=B4=E4=B8=A4=E7=A7=8D=E7=BB=98=E5=88=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cad/BlockRawFreeForgeNoRoundHeadDrawer.cs | 6 ++++-- Cad/BlockRawFreeForgeRoundHeadDrawer.cs | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Cad/BlockRawFreeForgeNoRoundHeadDrawer.cs b/Cad/BlockRawFreeForgeNoRoundHeadDrawer.cs index 6d31b70..7082461 100644 --- a/Cad/BlockRawFreeForgeNoRoundHeadDrawer.cs +++ b/Cad/BlockRawFreeForgeNoRoundHeadDrawer.cs @@ -276,10 +276,12 @@ namespace CadParamPluging.Cad dimText += $"\\X({FormatDimNumber(valPrime.Value, null)})"; } + // 修正:引线向下延伸 innerFilletR,以接触直边 + double dimYStart = oy + H - innerFilletR; AddLinearDim( ctx, - new Point3d(xSectionLeft, oy + H, 0), - new Point3d(xSectionRight, oy + H, 0), + new Point3d(xSectionLeft, dimYStart, 0), + new Point3d(xSectionRight, dimYStart, 0), new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0), 0, dimText); diff --git a/Cad/BlockRawFreeForgeRoundHeadDrawer.cs b/Cad/BlockRawFreeForgeRoundHeadDrawer.cs index ab81329..24b0401 100644 --- a/Cad/BlockRawFreeForgeRoundHeadDrawer.cs +++ b/Cad/BlockRawFreeForgeRoundHeadDrawer.cs @@ -272,10 +272,13 @@ namespace CadParamPluging.Cad dimText += $"\\X({FeatureDrivenDrawer.FormatDimNumber(valPrime.Value, null)})"; } + // 修正:引线向下延伸 sectionFilletR,以接触直边 + // sectionFilletR 是剖面处的圆角半径 + double dimYStart = oy + H - sectionFilletR; AddLinearDim( ctx, - new Point3d(xSectionLeft, oy + H, 0), - new Point3d(xSectionRight, oy + H, 0), + new Point3d(xSectionLeft, dimYStart, 0), + new Point3d(xSectionRight, dimYStart, 0), new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0), 0, dimText);