kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #25805
Re: Schematic I/O plugin update.
Le 19/08/2016 à 01:33, Wayne Stambaugh a écrit :
> I just committed the component library file parser for the new schematic
> I/O plugin manager. Please test it when you get a chance. As with the
> schematic parser and formatter, it requires compiling with
> -DUSE_SCH_IO_MANAGER=ON. The current library file parser has some odd
> quirks so there may be some corner cases where older libraries do not
> load properly. If you get a error loading a library that the current
> parser loads properly, please send me the library file so I can fix the
> new parser. As with the schematic parser, the new library parser will
> be much more strict about the file formatting. There is also a bug in
> the existing parser where parsed library objects are not sorted at load
> time. As some point, the sorting must have changed so if you save a
> library to a new name for round trip testing there will be some minor
> differences in the order of the draw objects in the component
> definitions. Next up will be the using the plugin to handle library
> management which I suspect will be much more likely to break things.
>
> Thanks,
>
> Wayne
Thanks, Wayne.
Attached a old library which is non accepted by the new parser:
- The first line has a version id format slightly different
(It could be due to a bug in kicad code: I found only a few library caches having this format)
- arcs have less parameters in old libs.
--
Jean-Pierre CHARRAS
EESchema-LIBRARY Version 29/9/2004-19:20:22
#
#
# CONN_1
#
DEF ~CONN_1 P 0 30 N N 1 0 N
F0 "P" 80 0 40 H V C C
F1 "CONN_1" -50 40 30 H I C C
DRAW
P 2 0 1 0 -30 0 -50 0 N
C 0 0 31 0 1 0 N
X 1 1 -150 0 100 R 60 60 1 1 P
ENDDRAW
ENDDEF
#
# CONN_2
#
DEF CONN_2 P 0 40 Y N 1 0 N
F0 "P" -50 0 40 V V C C
F1 "CONN_2" 50 0 40 V V C C
DRAW
S -100 150 100 -150 0 1 0 N
X PM 2 -350 -100 250 R 60 60 1 1 P I
X P1 1 -350 100 250 R 60 60 1 1 P I
ENDDRAW
ENDDEF
#
# CONN_4
#
DEF CONN_4 P 0 40 Y N 1 0 N
F0 "P" -50 0 50 V V C C
F1 "CONN_4" 50 0 50 V V C C
DRAW
S -100 200 100 -200 0 1 0 N
X P4 4 -350 -150 250 R 50 50 1 1 P I
X P3 3 -350 -50 250 R 50 50 1 1 P I
X P2 2 -350 50 250 R 50 50 1 1 P I
X P1 1 -350 150 250 R 50 50 1 1 P I
ENDDRAW
ENDDEF
#
# DIODESCH
#
DEF DIODESCH D 0 40 N N 1 0 N
F0 "D" 0 100 40 H V C C
F1 "DIODESCH" 0 -100 40 H V C C
DRAW
P 3 0 1 0 -50 50 50 0 -50 -50 F
P 6 0 1 0 75 25 75 50 50 50 50 -50 25 -50 25 -25 N
X K 2 200 0 150 L 40 40 1 1 P
X A 1 -200 0 150 R 40 40 1 1 P
ENDDRAW
ENDDEF
#
# FUSE
#
DEF FUSE F 0 10 Y Y 1 0 N
F0 "F" 150 150 40 H V C C
F1 "FUSE" -100 -50 40 H V C C
DRAW
A 75 10 75 -1725 -74 0 1 0 N
A -75 -10 75 74 1725 0 1 0 N
X ~ 1 -250 0 100 R 40 40 1 1 I
X ~ 2 250 0 100 L 40 40 1 1 I
ENDDRAW
ENDDEF
#
# GND
#
DEF ~GND #PWR 0 0 Y Y 1 0 N
F0 "#PWR" 0 0 40 H I C C
F1 "GND" 0 -70 40 H I C C
DRAW
P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N
X GND 1 0 0 0 U 40 40 1 1 W N
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 0 N
F0 "D" 0 100 50 H V C C
F1 "LED" 0 -100 50 H V C C
DRAW
P 3 0 1 0 -50 50 50 0 -50 -50 F
P 2 0 1 0 50 50 50 -50 N
P 3 0 1 0 80 -25 125 -65 120 -40 N
P 3 0 1 0 65 -40 110 -80 105 -55 N
X K 2 200 0 150 L 40 40 1 1 P
X A 1 -200 0 150 R 40 40 1 1 P
ENDDRAW
ENDDEF
#
# PWR_FLAG
#
DEF PWR_FLAG #FLG 0 0 N N 1 0 N
F0 "#FLG" 0 270 30 H I C C
F1 "PWR_FLAG" 0 230 30 H V C C
DRAW
P 5 0 1 0 0 100 -100 150 0 200 100 150 0 100 N
X pwr 1 0 0 100 U 20 20 0 0 w
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 0 0 N
F0 "R" 80 0 50 V V C C
F1 "R" 0 0 50 V V C C
DRAW
S -40 150 40 -150 0 1 0 N
X ~ 2 0 -250 100 U 60 60 1 1 P
X ~ 1 0 250 100 D 60 60 1 1 P
ENDDRAW
ENDDEF
#
# TRANSFO
#
DEF TRANSFO T 0 40 Y N 1 0 N
F0 "T" 0 250 70 H V C C
F1 "TRANSFO" 0 -300 70 H V C C
DRAW
A -100 -50 50 -1 2701 0 1 0 N
A -100 -150 50 899 1 0 1 0 N
A 100 150 50 899 -1799 0 1 0 N
A 100 50 50 899 -1799 0 1 0 N
A 100 -50 50 1799 -899 0 1 0 N
A 101 -150 50 -912 1801 0 1 0 N
P 2 0 1 0 -25 200 -25 -200 N
P 2 0 1 0 25 -200 25 200 N
A 100 50 50 1799 -899 0 1 0 N
A -100 50 50 899 1 0 1 0 N
A 100 150 50 1799 -899 0 1 0 N
A -100 50 50 -1 2701 0 1 0 N
A -100 150 50 899 1 0 1 0 N
A 100 -50 50 899 -1799 0 1 0 N
A -100 -50 50 899 1 0 1 0 N
A 101 -150 50 910 -1799 0 1 0 N
A -100 -150 50 -1 2701 0 1 0 N
A -100 150 50 -1 2701 0 1 0 N
X SA 3 400 -200 300 L 60 60 1 1 P
X AB 2 -400 -200 300 R 60 60 1 1 P
X AA 1 -400 200 300 R 60 60 1 1 P
X SB 4 400 200 300 L 60 60 1 1 P
ENDDRAW
ENDDEF
#
#EndLibrary
References