I have written a simple script to calculate (physical) area information using "extracta" command. I use SYM_EXTENTS_X1, SYM_EXTENTS_Y1, SYM_EXTENTS_X2, SYM_EXTENTS_Y2 variables. I am able to calculate area the scirpt is ok. BUT, the problem is that the area is sometimes too big (5-6 times) than the actual footprint and sometimes it is too small. I am wondering what is going wrong? any inputs ... please help.
I dont know how the extracta tool works, which layers it looks at for this info? if the footprint was created using mm (as units) and the layout is in mils, will that cause any difference? if the ref designator text of the component is way bigger than the body can this affect the cordinates I am extracting? these are vaious doubts that I have in my mind currently. Please help me to clear this clutter in my head.