KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
745 stars 192 forks source link

Klayout not recognizing hatches made in dxf files in AUTOCAD #1716

Open aryaman3900 opened 1 month ago

aryaman3900 commented 1 month ago

I have to use maskless aligner for fabricating a microfluidic device for which I need to have my channels filled with something. So I used hatch option to create hatches within the channels as shown in this image:

image

But when I am opening the same file in Klayout to convert to GDSII some additional lines are been shown in the drawing and also the circles are filled which shouldn't be. Can someone please tell how to fix this issue?

image

Kazzz-S commented 1 month ago

Hello @aryaman3900,

I hope my comments can help you. Also refer to https://www.klayout.de/forum/discussion/2006

1. Sample Data

Designed by usisng: AboutQCAD

to be continued...

Kazzz-S commented 1 month ago

Cont.

2. Reader Options

ReaderOptions

Kazzz-S commented 1 month ago

Cont.

3. Without Hatching

withoutHatch-(1) withoutHatch-(2) withoutHatch-(3) withoutHatch-(4) withoutHatch-(5)

Kazzz-S commented 1 month ago

Cont.

4. With Hatching

withHatch-(1) withHatch-(2) withHatch-(3) withHatch-(4) withHatch-(5)

Regards, Kazzz-S

klayoutmatthias commented 1 month ago

Hi @Kazzz-S,

thanks a lot for your experiments and insights.

DXF to GDS is not a simple topic. DXF has too many flavors. Hatches are converted to polygons in KLayout, but they may overlay the polygons created by the POLYLINE objects. So I'd not use them.

Usually, only lines are drawn and the filling is generated automatically by KLayout. Hatches just add another layer. Maybe I should create an option for not converting them. Or have an option to ignore POLYLINE and only accept HATCH and ignore HATCH in the other cases and only take POLYLINE.

I think the POLYLINE conversion is usually the best way to create filled polygons. Mostly one of the supplied modes works :)

Matthias