EESchema appendix: Library files format EESchema

Headings:

1 - Units

2 - Heading

3 - Description of a component

3.1 - Description of Alias

3.2 - Description of the fields

3.3 - Description of the graphic elements

3.3.1 - Polygon :

3.3.2 - Rectangle

3.3.3 - Ring

3.3.4 - Arc of circle

3.3.5 - Text field

3.4 - Description of the pins


1 - Units

Sizes and coordinates are given in mils (1/1000 inch)

2 - Heading

format:

EESchema-LIBRARY Version 2.0 24/1/1997-18:9:6

description of the components

# End Library


3 - Description of a component

The format is as follows :

DEF name reference unused text_offset draw_pinnumber draw_pinname unit_count units_locked option_flag

ALIAS name1 name2…

fields list

DRAW

list graphic elements and pins

ENDDRAW

ENDDEF

Parameters for DEF :


Example:

DEF BNC P 0 40 Y NR 1 L NR

F0 “P” 10.120 60 H V L C

F1 “BNC” 110 - 60 40 V V L C

DRAW

C 0 0 70 0 1 0

C 0 0 20 0 1 0

X Ext. 2 0 - 200 130 U 40 40 1 1 P

X In 1 - 150 0.130 R 40 40 1 1 P

ENDDRAW

ENDDEF


3.1 - Description of Alias

This line exists only if the component has alias names.

format:

ALIAS name1 name2 name3…


3.2 - Description of the fields

format:

F n “text” posx posy dimension orientation visibility hjustify vjustify

with:

T = Top

Example:

DEF DIODE D 0 40 Y NR 1 0 NR

F0 “D” 0.100 50 H V L C

F1 “DIODE” 0 - 100 50 H V L C


3.3 - Description of the graphic elements

There are of 5 types:

3.3.1 - Polygon :

Format:

P Nb parts convert ltrait x0 y0 x1 y1 xi yi cc

With:

Example:


P 3 0 1 0 - 50 50 50 0 - 50 - 50 F

P 2 0 1 0 50 50 50 – 50 N


3.3.2 - Rectangle

Format:

S startx starty endx endy unit convert ltrait cc

With


Example:


S 0 50.900.900 0 1 0 f


3.3.3 - Ring

Format:

C posx posy radius unit convert ltrait cc

With

Example:


C 0 0 70 0 1 0 F

C 0 0 20 0 1 0 N


3.3.4 - Arc of circle

Format:

With posx posy radius start end part convert ltrait start_pointX start_pointY end_pointX end_pointY cc

With:

Example:


To 0.148 48 - 889 889 0 1 0 N

To 0 51 51 - 889 889 0 1 0 N


3.3.5 - Text field

Format:

T orientation posx posy dimension unit convert Text

With:


Example:


T 0 - 320 - 10 100 0 0 1 VREF


3.4 - Description of the pins

Format:

X name number posx posy lenght orientation Snum Snom unit convert Etype [shape].

With:


Example:


X TO 1 - 200 0.150 R 40 40 1 1 P

X K 2.200 0.150 L 40 40 1 1 P

X 0 1 0 0 0 R 40 40 1 1 W NR

X ~ 2 0 - 250 200 U 40 40 1 1 P


Page 3 - - 4