Consulting Services
MicrosPCB

An Enhanced ULP for Negative Silkscreen in Eagle CAD

Is There Any Way to do Negative Silkscreen in Eagle CAD ?

In the past, I wondered how Arduino boards have the inverted silkscreen art works. The folks behind Arduino use EAGLE CAD and I know for sure that Eagle doesn’t have any capability to generate inverted silkscreen. So, in the beginning I though it could be done by importing the art works as images using the import-BMP ULP.

Some art works of inverted silkscreen. Image Courtesy of Arduino

The only way to do an inverted/negative form is by using a copper polygon and adding the objects (texts, lines, …etc) in the 41 layer (tRestrict), but the results will be in the copper layer and it will take up a considered area of the PCB.

Until the day I discovered a ULP called negasilk that converts the polygon to 21 layer (tPlace), but there are considered number of problems in this ULP:

  1. All polygons are processed. So you need to delete the unwanted shapes produced from the other functional polygons.
  2. This ULP generates a script file to be executed to finish ULP’s work.

To solve these problems, I made some enhancements to the original ULP:

  1. Only polygon with “NEG_SILK” signal name will be processed.
  2. No need for the script file anymore. The commands will be bypassed directly to the editor.
  3. The output is movable using ‘group tool’. No need for the old approach to move the output (Disable some layers, select group, move group and finally enable the layers back).

In the GIF bellow is a demo for the new ULP

Negative Silkscreen in Eagle CAD

[Update 1]

I encountered an execution loop when I used the ULP with a Polygon with zero width. After debugging the root cause, I found that fillings loop member of UL_POLYGON in ULP is causing the loop and after reviewing the ULP manual I found the following statement:

Filling a polygon with zero width may result in enormous amounts of data, since it will be calculated with the smallest editor resolution of 1/320000mm! EAGLE User Language – Version 9.2.0

The easiest solution is to assert execution when polygon width is zero to avoid zero width case which will result a long filling loop.

[Update 2]

Thanks to @motla, He found that running the ULP in Autodesk Fusion is broken due to changes in ULP in Fusion. So he ported the ULP to work in Fusion. Please check more details on the script’s repo.

Download

Yahya Tawil

Embedded Hardware Engineer interested in open hardware and was born in the same year as Linux. Yahya is the editor-in-chief of Atadiat and believes in the importance of sharing free, practical, spam-free and high quality written content with others. His experience with Embedded Systems includes developing firmware with bare-metal C and Arduino, designing PCB&schematic and content creation.

4 Comments

  1. Looks great – I will give it a try. Before finding this, I was about to try generating gerbers as usual but assigning the Top and Bottom Silkscreen layers as a negative image when sending it to the board house. Theoretically, you would get an entire board covered with silkscreen but all text would be left open. You’d also be relying on the board house to clear the printing off of all pads and holes, but I think most do already.

  2. I used to script to make negative silkscreen.
    I wrote the text in 2 lines format and after following steps correctly and then running the ULP the command keeps running and no result is achieved.

    Will you please dig into it??

    1. Let me guess you’re using latest Eagle CAD version right ? If yes, then that’s right the script enters a loop, if you want test the current version you should use Eagle 7.x to run it without problems.

      For some reason, the new Eagle CAD team (after Autodesk acquisition) has changed something in ULP, I try to find what is it from release notes but I couldn’t find any thing useful. I will try to fix that this weekend. Keep an eye on this page.

    2. Good news, I’ve tested the ULP with Eagle V9.3 and it’s working again. Some version of V8.x has something making the ULP not working as intended. So please use V7.x or >V9 to run this ULP.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button