일부 레이어만 비율 조정하여 내보내기
Contents
[
Hide
]비율 조정으로 일부 레이어만 내보내기 (CADNET-559)
문제: 비율 조정으로 일부 레이어만 내보내는 방법 (CADNET-559).
팁: 이를 위해 필요한 레이어를 선택하고, CadBaseEntity 배열에 추가한 후, 이들을 도면 엔터티에 할당하고 UpdateSize를 실행합니다.
예시:
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
List<CadBaseEntity> validEntities = new List<CadBaseEntity>(); | |
foreach (CadBaseEntity entity in cadImage.Entities) | |
{ | |
if (entity.LayerName == "Layer1" || entity.LayerName == "Layer2") | |
{ | |
validEntities.Add(entity); | |
} | |
} | |
cadImage.Entities = validEntities.ToArray(); | |
cadImage.UpdateSize(); |