다각선의 너비 변경
Contents
[
Hide
]다각선의 너비 변경 방법
문제: 다각선의 너비를 변경하는 방법 (CADNET-459-460).
팁: CadBaseEntity에서 너비를 변경하려면 (type CadEntityTypeName.LWPOLYLINE) (entity as CadLwPolyline).ConstantWidth = 2 또는 일반 엔티티에 대해 LineWeight를 사용하십시오.
예:
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; | |
} |