I have a schematic I did 2 years ago and now want to edit, but when I try to load it I get this error message: line 16474, column 66: redefinition of name 'SUPPLY1' in tag <part>. How can I fix this (or bypass it)?
Thanks,
Greg
I have a schematic I did 2 years ago and now want to edit, but when I try to load it I get this error message: line 16474, column 66: redefinition of name 'SUPPLY1' in tag <part>. How can I fix this (or bypass it)?
Thanks,
Greg
Warren, I looked at it with FOXE as you suggested, but have to admit that I know nothing about XML. I didn't see anything suspicious in the structure, it simply had 2 occurrences of 'SUPPLY1' in both the 'PARTS' and 'INSTANCES' sections. It's not clear (to me) that the 2nd occurrence in one section relates to the 2nd occurrence in the other, but by changing the name of the 2nd occurrence in each section to 'SUPPLY31' the problem seems to be resolved.
On 1/03/2014 3:37 p.m., Greg Marshall wrote:
Warren, I looked at it with FOXE as you suggested, but have to admit
that I know nothing about XML. I didn't see anything suspicious in the
structure, it simply had 2 occurrences of 'SUPPLY1' in both the 'PARTS'
and 'INSTANCES' sections. It's not clear (to me) that the 2nd
occurrence in one section relates to the 2nd occurrence in the other,
but by changing the name of the 2nd occurrence in each section to
'SUPPLY31' the problem seems to be resolved.
--
To view any images and attachments in this post, visit:
http://www.element14.com/community/message/105131
If you are inclined, how about uploading here the section of the XML
from (inclusive)
Your solution is probably a safe fix but I would be interested in seeing
the original corrupt code.
Warren
Warren,
Below is the <parts> section with most of it snipped out. Note occurrences of "SUPPLY1" near the beginning and end:
<parts>
<part name="D1" library="diode" deviceset="1N4004" device=""/>
<part name="FRAME1" library="frames" deviceset="FRAME_B_L" device=""/>
<part name="C3" library="rcl" deviceset="C-US" device="025-025X050" value="0.1uF"/>
<part name="C4" library="rcl" deviceset="C-US" device="025-025X050" value="0.1uF"/>
<part name="C6" library="rcl" deviceset="C-US" device="025-025X050" value="0.1uF"/>
<part name="C7" library="rcl" deviceset="C-US" device="025-025X050" value="33pF"/>
<part name="C8" library="rcl" deviceset="C-US" device="025-025X050" value="33pF"/>
<part name="SUPPLY1" library="supply2" deviceset="GND" device=""/>
<part name="SUPPLY2" library="supply2" deviceset="GND" device=""/>
<part name="SUPPLY3" library="supply2" deviceset="GND" device=""/>
.
.
.
<part name="U2" library="uln-udn" deviceset="ULN2068B" device="N"/>
<part name="C16" library="rcl" deviceset="C-US" device="025-025X050" value="0.1uF"/>
<part name="SUPPLY1" library="supply2" deviceset="GND" device=""/>
<part name="F1" library="ptc-ntc" deviceset="B57164" device=""/>
<part name="C17" library="rcl" deviceset="CPOL-US" device="E2-5" value="33uF"/>
<part name="J1" library="GBM" deviceset="PWR-JACK-2.5MM" device=""/>
</parts>
And here is a similarly edited part of the <instances> section:
<instances>
<instance part="D1" gate="1" x="60.96" y="251.46"/>
<instance part="FRAME1" gate="G$1" x="0" y="0"/>
<instance part="FRAME1" gate="G$2" x="325.12" y="2.54"/>
<instance part="C3" gate="G$1" x="111.76" y="233.68"/>
<instance part="C4" gate="G$1" x="195.58" y="198.12"/>
<instance part="C6" gate="G$1" x="330.2" y="116.84"/>
<instance part="C7" gate="G$1" x="101.6" y="106.68"/>
<instance part="C8" gate="G$1" x="116.84" y="106.68"/>
<instance part="SUPPLY1" gate="GND" x="53.34" y="215.9"/>
<instance part="SUPPLY2" gate="GND" x="109.22" y="91.44"/>
.
.
.
<instance part="U2" gate="A" x="330.2" y="147.32"/>
<instance part="C16" gate="G$1" x="332.74" y="182.88"/>
<instance part="SUPPLY1" gate="GND" x="332.74" y="172.72"/>
<instance part="F1" gate="1" x="38.1" y="251.46" smashed="yes" rot="R90">
<attribute name="NAME" x="40.132" y="253.7206" size="1.778" layer="95"/>
<attribute name="VALUE" x="43.307" y="253.492" size="1.778" layer="96" rot="R90"/>
</instance>
Does this tell you anything?
Greg
On 2/03/2014 1:05 p.m., Greg Marshall wrote:
Warren,
Below is the <parts> section with most of it snipped out. Note
occurrences of "SUPPLY1" near the beginning and end:
<parts>
<part name="D1" library="diode" deviceset="1N4004" device=""/>
<part name="FRAME1" library="frames" deviceset="FRAME_B_L" device=""/>
<part name="C3" library="rcl" deviceset="C-US" device="025-025X050"
value="0.1uF"/>
<part name="C4" library="rcl" deviceset="C-US" device="025-025X050"
value="0.1uF"/>
<part name="C6" library="rcl" deviceset="C-US" device="025-025X050"
value="0.1uF"/>
<part name="C7" library="rcl" deviceset="C-US" device="025-025X050"
value="33pF"/>
<part name="C8" library="rcl" deviceset="C-US" device="025-025X050"
value="33pF"/>
<part name="SUPPLY1" library="supply2" deviceset="GND" device=""/>
<part name="SUPPLY2" library="supply2" deviceset="GND" device=""/>
<part name="SUPPLY3" library="supply2" deviceset="GND" device=""/>
.
.
.
<part name="U2" library="uln-udn" deviceset="ULN2068B" device="N"/>
<part name="C16" library="rcl" deviceset="C-US" device="025-025X050"
value="0.1uF"/>
<part name="SUPPLY1" library="supply2" deviceset="GND" device=""/>
<part name="F1" library="ptc-ntc" deviceset="B57164" device=""/>
<part name="C17" library="rcl" deviceset="CPOL-US" device="E2-5"
value="33uF"/>
<part name="J1" library="GBM" deviceset="PWR-JACK-2.5MM" device=""/>
</parts>
And here is a similarly edited part of the <instances> section:
<instances>
<instance part="D1" gate="1" x="60.96" y="251.46"/>
<instance part="FRAME1" gate="G$1" x="0" y="0"/>
<instance part="FRAME1" gate="G$2" x="325.12" y="2.54"/>
<instance part="C3" gate="G$1" x="111.76" y="233.68"/>
<instance part="C4" gate="G$1" x="195.58" y="198.12"/>
<instance part="C6" gate="G$1" x="330.2" y="116.84"/>
<instance part="C7" gate="G$1" x="101.6" y="106.68"/>
<instance part="C8" gate="G$1" x="116.84" y="106.68"/>
<instance part="SUPPLY1" gate="GND" x="53.34" y="215.9"/>
<instance part="SUPPLY2" gate="GND" x="109.22" y="91.44"/>
.
.
.
<instance part="U2" gate="A" x="330.2" y="147.32"/>
<instance part="C16" gate="G$1" x="332.74" y="182.88"/>
<instance part="SUPPLY1" gate="GND" x="332.74" y="172.72"/>
<instance part="F1" gate="1" x="38.1" y="251.46" smashed="yes"
rot="R90">
<attribute name="NAME" x="40.132" y="253.7206" size="1.778" layer="95"/>
<attribute name="VALUE" x="43.307" y="253.492" size="1.778" layer="96"
rot="R90"/>
</instance>
Does this tell you anything?
Greg
--
Thanks Greg
The XML looks well formed. For some reason Eagle permitted a part of the
same name or made an error when writing out during the save, Anyway your
solution is fine.
Since about v6.5 Jorge reports there have been more checks made when a
board loads so maybe this is why it has shown up now.
All the best
Warren