Změna šířky polygonové čáry
Contents
[
Hide
]Jak změnit šířku polygonové čáry
Problém: Jak změnit šířku polygonové čáry (CADNET-459-460).
Tipy: Pro změnu šířky v CadBaseEntity (pokud je typ CadEntityTypeName.LWPOLYLINE) použijte (entita jako CadLwPolyline).ConstantWidth = 2 nebo pro běžné entity LineWeight.
Příklad:
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; | |
} |