Зміна ваги ліній для 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; | |
} |