feat: 添加自由锻毛料无圆头和有圆头两种绘制模块
This commit is contained in:
parent
2ccdc970ce
commit
50a8e275dd
@ -276,10 +276,12 @@ namespace CadParamPluging.Cad
|
|||||||
dimText += $"\\X({FormatDimNumber(valPrime.Value, null)})";
|
dimText += $"\\X({FormatDimNumber(valPrime.Value, null)})";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修正:引线向下延伸 innerFilletR,以接触直边
|
||||||
|
double dimYStart = oy + H - innerFilletR;
|
||||||
AddLinearDim(
|
AddLinearDim(
|
||||||
ctx,
|
ctx,
|
||||||
new Point3d(xSectionLeft, oy + H, 0),
|
new Point3d(xSectionLeft, dimYStart, 0),
|
||||||
new Point3d(xSectionRight, oy + H, 0),
|
new Point3d(xSectionRight, dimYStart, 0),
|
||||||
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
|
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
|
||||||
0,
|
0,
|
||||||
dimText);
|
dimText);
|
||||||
|
|||||||
@ -272,10 +272,13 @@ namespace CadParamPluging.Cad
|
|||||||
dimText += $"\\X({FeatureDrivenDrawer.FormatDimNumber(valPrime.Value, null)})";
|
dimText += $"\\X({FeatureDrivenDrawer.FormatDimNumber(valPrime.Value, null)})";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修正:引线向下延伸 sectionFilletR,以接触直边
|
||||||
|
// sectionFilletR 是剖面处的圆角半径
|
||||||
|
double dimYStart = oy + H - sectionFilletR;
|
||||||
AddLinearDim(
|
AddLinearDim(
|
||||||
ctx,
|
ctx,
|
||||||
new Point3d(xSectionLeft, oy + H, 0),
|
new Point3d(xSectionLeft, dimYStart, 0),
|
||||||
new Point3d(xSectionRight, oy + H, 0),
|
new Point3d(xSectionRight, dimYStart, 0),
|
||||||
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
|
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
|
||||||
0,
|
0,
|
||||||
dimText);
|
dimText);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user