Exportación de solo algunas capas con reescalado
Contents
[
Hide
]Exportación de solo algunas capas con reescalado (CADNET-559)
Problema: Cómo exportar solo algunas capas con reescalado (CADNET-559).
Consejos: Para hacer esto, seleccione las capas necesarias, agréguelas a la matriz CadBaseEntity, luego asígnelas a entidades de dibujo y ejecute UpdateSize.
Ejemplo:
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(); |