ייצוא של רק כמה שכבות עם שינוי גודל
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(); |