ch-aurich / Eagle2FreeCad

Export your eagle boards to freecad, just like eagleUp does for Sketchup
23 stars 7 forks source link

Issue in calculating thickness for multilayer pcbs #1

Closed ch-aurich closed 11 years ago

ch-aurich commented 11 years ago

someone wrote me that there is an issue with the following layersetup (part of brd xml):

<param name="layerSetup" value="(1+(2*15)+16)"/>
<param name="mtCopper" value="0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm"/>
<param name="mtIsolate" value="0.35mm 1.35mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.75mm 0.35mm"/>

The script is canceled at the line

layerThicknesses = drawing.find('board/designrules/param[@name="mtCopper"]').attrib['value']
kevinfodor commented 11 years ago

I am not 100% sure, but it looks like I might be having this "thickness issue" while converting my board. It looks like it turns my 4-layer PCB into a solid thickness of 40mm (~1.6in) which is suspiciously scaled I think from the value it should be which is 0.16in.

So I am pretty sure it is something perhaps wrong with my set-up. Any suggestions?

ch-aurich commented 11 years ago

Could you please provide the brd File that causes the Problem? Did you specify the thickness in eagle correctly?

kevinfodor commented 11 years ago

@ch-aurich , thanks for the tip on this. It did seem to be related to my DRU setup. Although I did have the correctly specified it looks like maybe an Eagle problem. I had core thickness as 40mil. However the other dimensions were in mm. Which as a sum they came up to .062 on a 4-layer board as expected and as listed. Strange that even putting in 1.016 mil as the core kept resulting in 40 mil as the entry (over written by eagle). It wasn't until I chose something like 1.015 (slightly less) it kept all my units in mm and the result in FreeCad with the MACRO was perfect.

So it is indeed working fine. Thanks for the quick response and tip.