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…...NET, you will need to make a few modifications to your...the name of the hatch pattern. Make sure to check the documentation...