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}, layer's color ID is {2}", entity.ColorId, entity.LayerName, l.ColorId);
foreach (var boundaryPathContainer in hatch.BoundaryPaths)
{
foreach (var boundaryPath in boundaryPathContainer.BoundaryPath)
{
var hatchData = new Hatch
{
Points = GetBoundaryPathPoints(boundaryPath)
.Select(p => TransformPoint(p.X, p.Y)).ToList()
};
extractedEntities.Hatches.Add(hatchData);
}
}
}
}
I want to fetch the color of the hatch in rgb format and the pattern used in it. What additional I have to add in my code? i am using aspose.cad for dot net for my dwg files.