修改画图后效果样式

This commit is contained in:
sladro 2025-12-18 12:02:52 +08:00
parent 83e774a029
commit 833b941b1c

View File

@ -177,9 +177,11 @@ namespace CadParamPluging.Cad
tr.AddNewlyCreatedDBObject(hatch, true);
hatch.SetHatchPattern(HatchPatternType.PreDefined, "ANSI31");
hatch.PatternScale = 5.0;
hatch.Associative = true;
hatch.ColorIndex = 4;
hatch.PatternScale = 0.8;
hatch.PatternAngle = 0;
hatch.Associative = false;
hatch.ColorIndex = 7; // 白色
hatch.LineWeight = LineWeight.LineWeight025; // 0.25mm线宽
var ids = new ObjectIdCollection();
ids.Add(polyPart.ObjectId);