Start a new topic

Gerber to GDSII with Negative Field

I have a Gerber file that I want to convert to GDS. When I convert this file, the output is the “neg” of what I started with. Why is the software not maintaining the original format?

My initial notes:

1. My Guess is that you're converting an Image to GDSII (and using Gerber as the middle format).  I'd recommend skipping the Gerber format and just use the Image to GDSII.

2.  Don't add the "Negative Flag" or "Mirror Flat" to exported Gerbers unless you're outputting them for photoplotting.

I am going to first remove the NegFlag in the Gerber file header, then I'll create a border, then I'm going to make the image negative (using Composite Levels), then convert the negative image to simple Polygons using the boolean engine (because that's all GDSII can handle), finally export to GDSII.  See tutorial movie:
http://screencast.com/t/HISwldetw5LU

Note:  The last step is not necessarily need because if ACE sees the composite, it will go ahead and convert to simple polygons automatically.

IMPORTANT:  Anytime the boolean engine is used, it's always a good idea to spend a few minutes to review the resulting image and ensure everything looks fine.


[QUOTE]I'm not converting an image as you have mentioned. So I think we need to look at this again. [/QUOTE]


Thanks for getting back.  The sample movie I sent showed exactly how to create a negative GDSII file from your Gerber, so I'm not sure I understand your confusion.

It would be nice if GDSII behaved just like Gerber (and handled negative images), but it does not... there are certain concessions that you have to make if you want to convert to GDSII.   GDS-II does not support "negative images", thus to make your design negative (for a GDSII conversion); you must draw an outer polygon around whatever image you wish to convert and reverse the polarity of the inner objects.

Note:   When you load a "Negative" Gerber file and then look at it, can you tell me where is the border where the black area (i.e. negative fill) begins?? There is no border in gerber, the negative fill stretchs out to infinity..  GDSII cannot support anything to infinity, it must have a defined boundary which can be used as the negative fill, and then you reverse the polarity of the inner objects --- resulting in a negative design that can be outputted to GDSII.


I'm not converting an image as you have mentioned. So I think we need to look at this again.

Thanks for getting back.  The sample movie I sent showed exactly how to create a negative GDSII file from your Gerber, so I'm not sure I understand your confusion. 

It would be nice if GDSII behaved just like Gerber (and handled negative images), but it does not... there are certain concessions that you have to make if you want to convert to GDSII.   GDS-II does not support "negative images", thus to make your design negative (for a GDSII conversion); you must draw an outer polygon around whatever image you wish to convert and reverse the polarity of the inner objects. 

Note:   When you load a "Negative" Gerber file and then look at it, can you tell me where is the border where the black area (i.e. negative fill) begins?? There is no border in gerber, the negative fill stretches out to infinity..  GDSII cannot support anything to infinity, it must have a defined boundary which can be used as the negative fill, and then you reverse the polarity of the inner objects --- resulting in a negative design that can be outputted to GDSII.

Login or Signup to post a comment