Hatch Boundary

Hatch Boundary

jmyr
Enthusiast Enthusiast
566 Views
0 Replies
Message 1 of 1

Hatch Boundary

jmyr
Enthusiast
Enthusiast

Hi,

 

not sure if this is the right place to ask but i would give it a try, i'm trying to get hatch boundary from dxf file  

 

 List<netDxf.Entities.Hatch> hatches = new List<Hatch>();

                DxfDocument dxfLoad = DxfDocument.Load(filename);
                foreach(netDxf.Blocks.Block b in dxfLoad.Blocks)
                {
                    foreach(var x in b.Entities)
                    {
                        if (x.Type == EntityType.Hatch)
                        {
                            hatches.Add(x as Hatch);
                        }
                    }                
                }

so i was able to get the hatches as shown above but i don't know how to convert those boundary as Polyline or Curves. 

 

 foreach(Hatch hatch in hatches)
                {
                                   
                    foreach (var x in hatch.BoundaryPaths.ToList())
                    {
                        x.Edges.ToList();
                   
                    }                
                }

There's a property called edges but im not sure how to start with that., Anyone has an idea?

 

Thanks.

0 Likes
567 Views
0 Replies
Replies (0)