نادیده گرفتن برخی موجودیتها در صادرات
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(); |