foreach (var entity in _cadImage.Entities)
{
var n = entity.LayerName;
var l = _cadImage.Layers.GetLayer(n);
{
if (entity is CadHatch hatch)
{
Console.WriteLine("Polyline color Id is {0}, layer's name is {1…...color ID is {0}, layer's name is {1}, layer's color ID is {2}"...layer's name is {1}, layer's color ID is {2}", rgbColor, entity.LayerName...