Error in schematic file format

I am writing cloning feature in python.

I am using linux and KiCAD 4.02.

The error is in couple of capacitor and resistors names like this:

$Comp
L C C?
U 1 1 56F649D8
P 16050 7400
AR Path="/56FBE4F4/56F649D8" Ref=“C?” Part=“1”
AR Path="/56FBE4F2/56F649D8" Ref=“C?” Part=“1”
AR Path="/56FBE4F0/56F649D8" Ref=“C?” Part=“1”
AR Path="/55C09CB6/56F649D8" Ref=“C56” Part=“1”
F 0 “C56” H 16075 7500 50 0000 L CNN
F 1 “10nF” H 16075 7300 50 0000 L CNN
F 2 “C_0603_H” H 16088 7250 30 0000 C CNN
F 3 “” H 16050 7400 60 0000 C CNN
1 16050 7400
1 0 0 -1
$EndComp

That schematic file should have after $Comp line the this: L C C56 instead of this: L C C?.

Is there any developer that read this forum?

Still the schematic and layout of this project works like it suppose to be without any error reported. The component in layout has proper name C56. Also in schematic that component has name C56.

But when I read the schematic file using python I read C?, because at the field that should be C56 is C?.

Thanks,
Petar

Not an error, you are looking at a hierarchical page. Each instance of the page has different annotation.

Have you actually red my question?

After the line “$Comp”, next line should look like this: “L C C56” and not certainly like this: “L C C?”. This has nothing with some other component at some other hierarchical sheet. I don’t care if some other component has some other name.

I am care about particular component (I want to read it’s designator) and the designator is actually “C?”.

The schematic is annotated and by looking at it there is no single clue to that issue, that component has C56 designator. Also I exported netlist to layout (“pcbnew”) and there is no single error and no clue about any C? component designator.

I’ve seen lines like these before… they somehow define identical copies of components in hierarchical sheets of components in ‘other’ (identical) hierarchical sheets.
You must have a copy of another hierarchical sheet there.
Did you copy hierarchical sheet ‘symbols’ in your master sheet or stuff like that?

PS: if you found a bug it’s ok to post here, but the official bug-tracker is located here:

PPS: tell the devs how you got that data that you got there, as that’s the first thing they want to know.

I have just reported the bug. Well it is not strictly the bug but KiCAD obviously doesn’t use its own and published file format. I concluded that because everything works both in schematic and layout, both schematic and layout know that it is capacitor with name C56, so instead of using this line 'L C C?" to know the component name it is using this line: F 0 “C56” H 16075 7500 50 0000 L CNN.

Thanks,
Petar

No need to be rude dear, I was trying to help!

The Kicad devs will likely confirm it is not a bug, but how hierarchical notation is handled.

The documentation tends to be incomplete, but the schematic file format will be changing completely in the future.

2 Likes

OK I understand…