דלג על כמה ישויות בזמן ייצוא
Contents
[
Hide
]איך לדלג על כמה ישויות בזמן ייצוא
בעיה: איך לדלג על כמה ישויות בזמן ייצוא.
טיפים: כדי לעשות זאת, אתה יכול לבחור רק את הישויות שאתה צריך על ידי הוספתן לרשימה חדשה ולאחר מכן להקצותן לשרטוט.
דוגמה:
This file contains hidden or 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
using CadImage cadImage = (CadImage)Image.Load(fileName); | |
CadBaseEntity[] entities = cadImage.Entities; | |
List<CadBaseEntity> filteredEntities = new List<CadBaseEntity>(); | |
foreach (CadBaseEntity baseEntity in entities) | |
{ | |
if (baseEntity.TypeName == CadEntityTypeName.TEXT) | |
{ | |
filteredEntities.Add(baseEntity); | |
} | |
} | |
cadImage.Entities = filteredEntities.ToArray(); |