Cambiar el ancho de la polilínea
Contents
[
Hide
]Cómo cambiar el ancho de la polilínea
Problema: Cómo cambiar el ancho de la polilínea (CADNET-459-460).
Consejos: Para cambiar el ancho en CadBaseEntity (si el tipo es CadEntityTypeName.LWPOLYLINE) utiliza (entity as CadLwPolyline).ConstantWidth = 2 o para entidades regulares LineWeight.
Ejemplo:
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; | |
} |