delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/04/01/11:05:41

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <533AD5A4.7080201@buffalo.edu>
Date: Tue, 01 Apr 2014 11:05:08 -0400
From: "Stephen R. Besch" <sbesch AT buffalo DOT edu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] copy/paste between different schematics
References: <CAHBVutBFUm6B20gcKRs=fxSCOYk7qh+vGV+Az2SpoYFmh0FCXg AT mail DOT gmail DOT com>
In-Reply-To: <CAHBVutBFUm6B20gcKRs=fxSCOYk7qh+vGV+Az2SpoYFmh0FCXg@mail.gmail.com>
X-PM-EL-Spam-Prob: X: 10%
Reply-To: geda-user AT delorie DOT com

As far as I know, this capability is not available and it may be quite a 
pain to implement. However, you might try the following:

1) Make a copy of the schematic you want to copy from. Let's say we call 
it Copy.sch.

2) Open the target schematic and make sure that there is an empty region 
somewhere on the page. You should probably be using the same physical 
page size (such as ANSI B).

3) Open Copy.sch and delete everything EXCEPT what you want to copy into 
your target schematic. Leave the title block but remove all text objects 
from it. Then move what's left into the same physical region of the page 
that you cleared for the paste operation in step 2. Then save the file.

4) Open Copy.sch in a text editor and remove anything that you couldn't 
get rid of in gschem. You also need to remove the version info and title 
block now. These will be the first few lines in the file and should look 
something like this:

  v 20110115 2
C 40000 40000 0 0 0 title-B.sym
{
T 54400 41500 5 10 0 0 0 0 1
graphical=1
}

The first line in the resulting file should start with  a "C" and 
identify a component.  Save the file but do not close the text editor.

5) Re-open Copy.sch in gschem and verify that you have what you need. 
You can further edit the file that is still open in the text editor - 
including using UNDO if you did something that broke the schematic.

6) Now open your target schematic file. You should probably make a copy 
and open this. Let's say we call it Paste.sch.  Find a suitable place in 
Paste.sch - probably the best place is right after the header block and 
it's associated test elements. That is, just before the first component. 
Paste a copy of Copy.sch at this location. Save Paste.sch

7) Open Paste.sch in gschem and massage the result. There may be odd 
connections owing to name overlap. Delete these, move your pasted bit to 
it's final place and connect it up.

8) Write back and let us know if it works.

Having said all this, there is another, probably better method. Perhaps 
using a sub-circuit, but this is not what you asked for and it comes 
with other issues.

Stephen R. Besch


On 04/01/2014 10:24 AM, Filippo Micheletti wrote:
> Is this functionality still missed or there is some way to do it?
> Thank you
>
> -Filippo-


-- 
fictio cedit veritati

- Raw text -


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