修改剖面密度

This commit is contained in:
sladro 2025-12-23 15:51:17 +08:00
parent 487e5fb3ed
commit ef5c82b692
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ namespace CadParamPluging.Cad
case Role.Hidden:
return new LayerSpec { LayerName = "虚线", DefaultLinetypeName = "DASHED", DefaultLineWeight = LineWeight.LineWeight025, DefaultColorIndex = 7 };
case Role.Hatch:
return new LayerSpec { LayerName = "剖面线", DefaultLinetypeName = "Continuous", DefaultLineWeight = LineWeight.LineWeight018, DefaultColorIndex = 7 };
return new LayerSpec { LayerName = "剖面线", DefaultLinetypeName = "Continuous", DefaultLineWeight = LineWeight.LineWeight018, DefaultColorIndex = 4 };
case Role.Dimension:
return new LayerSpec { LayerName = "尺寸标注", DefaultLinetypeName = "Continuous", DefaultLineWeight = LineWeight.LineWeight018, DefaultColorIndex = 7 };
case Role.Text:

View File

@ -610,7 +610,7 @@ namespace CadParamPluging.Cad
ctx.Tr.AddNewlyCreatedDBObject(hatch, true);
hatch.SetHatchPattern(HatchPatternType.PreDefined, "ANSI31");
hatch.PatternScale = 0.8;
hatch.PatternScale = 10;
hatch.PatternAngle = 0;
hatch.Associative = false;
ctx.Style?.Apply(hatch, DrawingStyleManager.Role.Hatch);

View File

@ -178,10 +178,10 @@ namespace CadParamPluging.Cad
tr.AddNewlyCreatedDBObject(hatch, true);
hatch.SetHatchPattern(HatchPatternType.PreDefined, "ANSI31");
hatch.PatternScale = 0.8;
hatch.PatternScale = 10;
hatch.PatternAngle = 0;
hatch.Associative = false;
hatch.ColorIndex = 7; // 白
hatch.ColorIndex = 4; // 青
hatch.LineWeight = LineWeight.LineWeight025; // 0.25mm线宽
var ids = new ObjectIdCollection();