delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/07/12/14:16:26

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=date:from:to:subject:message-id:in-reply-to:references:mime-version
:content-transfer-encoding;
bh=DYk37CFyGOIXHwCgcTb2l1M2qsU8QlK9xHvciJWg9Zw=;
b=mIV0wSs8kj7PKl7Ke8n5p17qmOQq10NHikCEsYTG50eSxkQxOusQpPrK+yuRDCXx21
D38+yg20Z/0v0B1tFHUtSo2khZSOq4WjJqDvqg/+hGSrliub44MaekFEGQRALXB+1fZi
d/1QRdmiO62HBQEOda+iqbjL1sz8WMpv2GShWxpyNzKw+JJ5Dvk8JTFAErx9MSubRM0V
JDfbYu/2jutBsP5TBXnM1ja2mSoZMul/z76uD/QQ2svOVNBnO3OMy9FFA1I8YNgSgVnU
935PLJUwpnSy7vEexEWfL2cu8Oyinl1GUZq89CInvEr7SCC2bt7pD7BHJxCz044KRIQp
UovQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-transfer-encoding;
bh=DYk37CFyGOIXHwCgcTb2l1M2qsU8QlK9xHvciJWg9Zw=;
b=D2lvSoF02potqDzo0yxHYuGYtw52d/AyFXYRGmvy6A6X6dLPCxlBBOhv7BVJf5spIc
y3xryyyU3Ds7D5sDYZzcZi6qA69Uobkepj7ndWcRBhFPD7TrvcrDSGUt/q9YWWtnZeGs
2OeLrVJJvMXy0taM+i3AwLB64ccXtOSms749itYL83x+51KP8vCgxJQGppb/TDSYLhK+
59rptF3AjuPBAYq2Q4zXJb7Ier9zlLKgfua3t+ykhGtTrponydoKFXZQaF/X7Q8Ubu6x
xcwc4lgfftxzT8+oef3FdAQF4VOmD/Wb7J7DHxrPgW0itZcejDVgelhB1YrHBn6GWaBu
0W5g==
X-Gm-Message-State: AIVw111tYUwx71QbBnVnb3G0wh4LrV1+98G99OrKne7eXvJcCE2v8u/n
76CHBuLCJ9PSEqYA
X-Received: by 10.25.67.22 with SMTP id q22mr2146058lfa.144.1499883223729;
Wed, 12 Jul 2017 11:13:43 -0700 (PDT)
Date: Wed, 12 Jul 2017 20:13:39 +0200
From: "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] PCB, load element bug (know then but not why)
Message-Id: <20170712201339.bdab1cbf6238d8da3354e439@gmail.com>
In-Reply-To: <alpine.DEB.2.00.1707121629340.27212@igor2priv>
References: <20170711005040 DOT d96eccaffe490027849789c3 AT gmail DOT com>
<20170711020955 DOT 0108aaea AT akka>
<alpine DOT DEB DOT 2 DOT 00 DOT 1707110515450 DOT 27212 AT igor2priv>
<20170711110940 DOT 84467c71877716992ddc3b11 AT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1707121629340 DOT 27212 AT igor2priv>
X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > Attached. I used save buffer elemnts to file. Neither load layout or element to buffer worked. Adding a via at the first line and it could be loaded with load element to buffer but not load layout to buffer.
> >
> > I happened to have an old file that worked and then checking content of this in editor I found vias in the beginning of file and was very suprised then file could be loaded then one of these where added at the first line.
> >
> > I am pretty sure I used it before without problems before but can't remember the details. Could it be wrong parser is selected somewhere? File ending *.pcb
> 
> Thank you.
> 
> The problem is unfortunatley more complex.
> 
> The .fp format is a single Element[] or Element() block in a file. The 
> .pcb format is a set of different objects, possibly Elements too, and some 
> headers (like PCB[]).
> 
> A .pcb file will contain layer infromation too, an .fp file won't.
> 
> The file you attached is neither of the above:
> 
> - it contains two elements, so that it can't be a footprint file
> 
> - it also contains (some) layer info, so it can't be a footprint file
> 
> - but it does not contain the necessary headers to make it a valid .pcb 
> file
> 
> 
> It is a known bug in pcb-rnd, probably also in mainline: if you save a 
> buffer with more than 1 elements, it will be hard or impossible to load it 
> again. Saving only 1 element as buffer and you will be able to load it.

I saved with more than one element so this is the problem. Now I also know it could be worked around at least sometimes by adding a via on the first line. Second option is by paste cut out and save in a different file as layout. I tried and it exist in both mainline and pcb-rnd.

> I don't plan to fix this in pcb-rnd, as elements will be removed soon. I 
> will make saving the buffer as buffer and saving a single subcircuit as a 
> footprint more explicit on the UI.

Sounds good.

You have or are planning a tree like structure like this: root object layout --> sub circuits --> footprints --> pads --> drawing primitives?

In sort of any object could appear anywhere? To connect with netlist it must be possible to find footprints by refdes and pin number but otherwise what is counted as a pad os circuit is more about where they are saved?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019