Component lib file format

Each lib contains at least:-

Components 	(numeric 0-99 empty lib would be 0)

Each Component cotains:-

{
Name:	(20 character name)
gminX:	(minx of all parts of component)
gmaxY:	(maxy of all parts of component)
Data:	(boundry box x,y,endx,endy) (comp num) (select flag)

Pad:	(number of pads in comp)
	xpos,ypos,type,layer,compnum,flag,drill,dcode,spare(ground),spare1

Track:	(number of tracks in comp)
	xpos,ypos,endx,endy,layer,comp,width,flag,dcode,conduct,spare1
	
Text:	(number of texts in component)
	originx,originx,xpos,ypos,endx,endy,comp,flag,ori,size,invert,layer,text

}

example component follows:-

{
Name:	4WAY-HEADER          
gminX: 	3280
gmaxY: 	350
Data:	3273	233	5687	357	438	1

Pad: 	4
	3330	290	1	0 	438	4 	1	-1 	0	-1
	3430	290	1	0 	438	4 	1	-1 	0	-1
	3530	290	1	0 	438	4 	1	-1 	0	-1
	3630	290	1	0 	438	4 	1	-1 	0	-1
Track: 	5
	3680	240	3280	240 	3	438 	0	4 	-1	-1 	-1
	3680	240	3680	340 	3	438 	0	4 	-1	-1 	-1
	3680	340	3280	340 	3	438 	0	4 	-1	-1 	-1
	3280	340	3280	240 	3	438 	0	4 	-1	-1 	-1
	3280	350	3675	350 	3	438 	0	4 	-1	-1 	-1
Text: 	0

}

