Änderung der Breite der Polylinie
Contents
[
Hide
]Wie man die Breite der Polylinie ändert
Problem: Wie man die Breite der Polylinie ändert (CADNET-459-460).
Tipps: Um die Breite in CadBaseEntity zu ändern (wenn der Typ CadEntityTypeName.LWPOLYLINE ist), verwenden Sie (entity as CadLwPolyline).ConstantWidth = 2 oder für reguläre Entitäten LineWeight.
Beispiel:
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; | |
} |