เปลี่ยนน้ำหนักเส้นสำหรับ DWG/DXF
Contents
[
Hide
]วิธีการเปลี่ยนน้ำหนักเส้นสำหรับ DWG/DXF
ปัญหา: วิธีการเปลี่ยนน้ำหนักเส้นสำหรับ DWG/DXF.
เคล็ดลับ: คุณสามารถใช้คุณสมบัติ LineWeight บนเอนทิตีหรือเลเยอร์เพื่อทำสิ่งนี้.
ตัวอย่าง:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CadImage cadImage = (CadImage)Image.Load(fileName); | |
foreach (var entity in cadImage.Entities) | |
{ | |
entity.LineWeight = 0; | |
} | |
foreach (Aspose.CAD.FileFormats.Cad.CadTables.CadLayerTable layer in cadImage.Layers) | |
{ | |
layer.LineWeight = 0; | |
} |