Cambiare la larghezza della polilinea
Contents
[
Hide
]Come cambiare la larghezza della polilinea
Problema: Come cambiare la larghezza della polilinea (CADNET-459-460).
Suggerimenti: Per cambiare la larghezza in CadBaseEntity (se il tipo è CadEntityTypeName.LWPOLYLINE) usa (entity as CadLwPolyline).ConstantWidth = 2 o per entità regolari LineWeight.
Esempio:
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; | |
} |