Mail Archives: geda-user/2012/10/28/14:41:38
On 10/24/2012 08:26 PM, DJ Delorie wrote:
>>> Attribute("import::src0" "../Schematic/Schematic.sch")
>>>
>> What if the schematic is more than one page?
> If you have more than one top-level schematic page, use import::src1,
> import::src2, etc. Note: this is in the documentation ;-)
Well, I've been trying the documentation (
http://pcb.geda-project.org/pcb-cvs/pcb.html#import-Action ), but it
looks very cryptic to me. I have a project directory with a completed
project: Two gschem pages, a project file, a completed pcb file (and an
attributes file for the BOM, which is probably irrelevant here), so I
know the old way with 'gsch2pcb' works. To try things out, I started
pcb from this directory and issued
'Import(gnetlist,<whateverfile.sch>,<whateverfile-p2.sch>)'. It could
not find my custom footprints and also gave me a bunch of errors about
shorted nets (probably bogus). Then, as Collin recommended on
10/23/2012, I set up a 'pcb.settings' file in the same directory, with
'lib-newlib = packages' in it ('packages' is a soft link, in the same
directory, pointing to my custom footprints) and repeated the process.
It seems that this time it could not find the standard libraries! In
either case, pcb did not import the components it could not associate
with footprints (to be expected).
Undaunted, I started a third pcb session and in the command window I
issued 'Attribute("Import :: src0" "whateverfile.sch" "import :: src1"
"whateverfile-p2.sch")'. In the message window I saw "no action"
relating to this command.
I think that a start-to-finish example on this newer feature, like the
newbie examples, would be most helpful. I'd be willing to write up one
once I figure this out.
- Raw text -