Zmień szerokość polilinii
Contents
[
Hide
]Jak zmienić szerokość polilinii
Problem: Jak zmienić szerokość polilinii (CADNET-459-460).
Porady: Aby zmienić szerokość w CadBaseEntity (jeśli typ CadEntityTypeName.LWPOLYLINE) użyj (entity as CadLwPolyline).ConstantWidth = 2 lub dla zwykłych encji LineWeight.
Przykład:
This file contains 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
foreach (CadBaseEntity entity in cadImage.Entities) | |
{ | |
if (entity.TypeName == CadEntityTypeName.LWPOLYLINE) | |
{ | |
(entity as CadLwPolyline).ConstantWidth = 2; | |
} | |
} | |
This can be used for common entities | |
foreach (var entity in cadImage.Entities) | |
{ | |
entity.LineWeight = 24; | |
} |