# Eagle PCB change drill size of all vias of a specific size

I have designed a board and there are many vias with 8mil drill sizes. I just found out from the manufacturer that the smallest drill size is 12mil.

Is it possible to change all 8mil drill sizes to 12mil? Or I should do this manually?

Another problem would be the outer and inner diameter of via pads.

For currently 8mil via drills, the outer and inner pads are set to 17.84252 mill (automatically by eagle)

For 12 mil vias eagle has set the outer and inner pads to 21.84252

I have no expirience with ULP scripts, but I believe there should be an easy way to achieve this. I think it is possible to do this by carefully find and replace the numbers in the .brd file...but I would like to avoid that and do it the official way!

• Found some info here that might help you. – somers Jun 2 '16 at 14:24

If large chunks if not all of the vias need to be changed, you can do this quite easily.

## Step 1

First you need to hide all layers but the vias layer (18). You can do this one of two ways.

(a) enter the following command:

display none 18


(b) Click the display button and hide all layers but layer 18:

## Step 2

Group all of your vias using the group tool. If you have some you don't want to change, simply avoid them when grouping. Using the group tool, you can either drag to select a square region, of click at various points to group a custom shaped region.

Note that because we hid all the other layers, the only thing that gets selected in your group is vias.

## Step 3

Select the required new drill size from the change tool. To do this, do either of the following.

(a) Type the following command change drill <drillsize> where <drillsize> is the size you want to change to - e.g. change drill 12mil.

(b) Click on the wrench icon on the toolbar, then click where it says "drill", then click on the required new drill size - if the required size doesn't appear in the list, click instead on the ... button at the bottom of the list to enter a new size manually. You can type the size including units - e.g. 12mil - and Eagle will convert it to the current grid units for you.

## Step 4

Apply the change to the group. This is done by right clicking anywhere in the group and selecting Group: change. This will apply the new drill size to any via that you have selected.

All of the selected vias will now be the new drill size.

# Step 5

To restore the layers you had previously visible, either:

(a) Type the command:

display last


(b) Open the display window as you did in Step 1 and select the layers you want visible.

• This does provide info for users to change to bigger or smaller sizes (shapes and other parameters) though, so still a nice answer – Wesley Lee Jun 2 '16 at 15:02