[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Using mm units in .pcb files



Hi DJ,

On Wed, 2008-06-11 at 11:32 -0400, DJ Delorie wrote:
> > ?? which is what?
> 
> The format we use for pcb-menu.res and gpcb-menu.res.  It's a
> heirarchical text format with tagging and grouping.  Semantically,
> it's like XML, but without all the heavy baggage that comes with XML.
> It allows forward compatibility and third-party expansion, is easy to
> parse, and highly compressible (since it's still text).  We'd probably
> need to write Perl modules to read/write it though ;-)
> 
> Example:
> 
> (Element
>   units = "mil"
>   mark = (150 150)
>   angle = 90
>   refdes = ("U4" x=500 y=1800 scale=10)
>   description = "monostable timer"
>   value = "NE555D"

# maybe we have an author with licensing issues ?
    author = "me, myself and I"
    use-license ="unlimited2 ;-) "
    dist-license = "LGPL"

>   origin_file = "semi/DIP-8-300.fp"
>   lines = (
>     size = 5
>     (0 0 100 0)
>     (0 0 0 100)
>     (100 0 0 100 size=10)
>   )
>   pins = (
>     drill = 35
>     size = 75
>     mask = 80
>     clearance = 10

# maybe pin pad has a shape ?
# maybe include pinlabels ?
    shape = SQUARE
    (0 0) 1 "GND"
    shape = ROUND
    (100 0) 2 "TRIGGER"
    (200 0) 3 "OUTPUT"
    (300 0) 4 "RESET"
    (300 300) 5 "CONTROL VOLTAGE"
    (200 300) 6 "THRESHOLD"
    (100 300) 7 "DISCHARGE"
    (0 300) 8 "VCC"

>   )

# what about oblong pin pads ?

  pads = (
    width = 75
    endcap = SQUARE 
    (0 -37 0 37) 1 "GND"
    endcap = ROUND
    (100 -37 100 37) 2 "TRIGGER"
    (200 -37 200 37) 3 "OUTPUT"
    (300 -37 300 37) 4 "RESET"
    (0 263 0 337) 5 "CONTROL VOLTAGE"
    (100 263 100 337) 6 "THRESHOLD"
    (100 263 100 337) 7 "DISCHARGE"
    (100 263 100 337) 8 "VCC"
    )

> )
> 
> 
Kind regards,

Bert Timmerman.
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user