pcb

Comment 17 for bug 699471

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi,

I think we need quotes, lots of quotes, in our "net scope".

See the thread on the technical support forum on freerouter.net:

<quote>
Re: Problem uploading dsn

Postby alfons » Wed Sep 07, 2011 12:53 pm

If a component name in a pins scope of a net scope contains a "-" character, my router expects, that this name is quoted.
The reason is, that in such a scope the pin name is separated from the component name by such a "-" character.
Normally the DSN-file writer of KiCad does this quoting correctly, but not when the component name begins with such a "-" character.
If you avoid, that a component name starts with a "-" character, my router will read your .dsn-file correctly.
Alternatively you can edit your dsn-file and quote the pin name from -180 to "-180" in the 4 locations inside a pins scope of a net scope, where the problem occurs.

</quote>

The pcb dsn exporter does this:

  (network
    (net AGND
      (pins C8-2 C9-2 C10-2 C11-2 C12-2 C13-2 C20-2 C21-2 R7-2 R9-2 R10-2 U2-6 U2-7 U2-8 U2-9 U2-18 U3-2 U3-5 U7-4)
    )
    (net DGND
      (pins C5-2 C6-2 C7-2 C14-2 C15-2 C16-2 C17-1 J3-1 U2-14 U2-19 U4-2 U4-5 U5-5 U6-4 X1-2)
    )
    (net Minus12V
      (pins C3-1 C4-1 J3-9 U1-6)
    )
    (net Plus12V
      (pins J3-6 R11-1 R12-2 U1-7 U1-11)
    )

others (FreePCB Ver 1.359) do this:

    (network

        (net "N1"

            (pins

                "P1"-"3"

                "MCU"-"131"

            )

        )

        (net "N2"

            (pins

                "P1"-"2"

                "MCU"-"129"

            )

Hope this gives a direction in solving some of the hick-ups I had @ freerouter.net

I try to fidlle with the code to cranck out some more quotes ;-)

Kind regards,

Bert Timmerman.