خروج تنها برخی از لایهها با تغییر مقیاس
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(); |