# Converting drill file in um to mm

1. ## Converting drill file in um to mm

Hello all,

I spent a long time laying out a panelized design, and I did all the work in um (ug, hindsight). When i created the gerber files it converted everything to mm. However, my drill file (while being in metric) is still outputting in um, so the gerbers and drill file don't overlay.
I spent some time researching how to make this conversion and I can't seem to get it right. The tool sizes are 127 and 254 um diameter. and those coordinates seem to be in 000000. format, meaning the first hole is at X = 35,813um and Y = 258,768um

I posted an abridged version below, any suggestions on how to force the correct decimal place would be much appreciated!

M48
M71, LZ
T01C0.127
T02C0.254
%
T01
X035813Y258768
X035959Y042774
X037765Y042493
X040563Y255437
X041345Y056116
X043151Y055835
X043590Y202108
T00
M30

it probably wont matter in the long run, pretty sure the circuit fab folks can figure this one out. But its mostly for my edification.
Sami

•

2. ## Re: Converting drill file in um to mm

mm is millimeter, 10^-3 m
um is micrometer, 10^-6 m

converting requires moving decimal point 3 places corresponding to multiplying or dividing by 1000,
depending one which way you're going.

since X035813 Y258768 is in um,
it should be X035.813 Y258.768 in mm
i separated the values for easier reading

i do not know what the format should be in your drill file

•

3. ## Re: Converting drill file in um to mm

Originally Posted by wwfeldman
i do not know what the format should be in your drill file
Appreciate the reply, but, I understand how the metric system works. Placing those decimals was obviously the first thing i tried.

Its the correct format that's in question. Microwave office claims its exporting a NC drill file. However, Even the hole size, as defined creates a 3.25mm diameter via, not sure how that number comes about with how I defined the tool diameters.

this has to be the dumbest problem to run into after weeks of design, testing, and layout....

- - - Updated - - -

Time to let the thread die

For some reason I had to change M71 ,LZ --> METRIC. Whatever works.

M48
METRIC
T01C0.127
T02C0.254
%
T01
X35.813Y258.768
X35.959Y42.774
X37.765Y42.493
X40.563Y255.437

Only reason to post the update; hope this can save someone some time in the future.

•

4. ## Re: Converting drill file in um to mm

i think you did good