← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Append schematic: copy the contents of one schematic file into another


Le 16/01/2013 12:18, Jacobo Aragunde Pérez a écrit :

With this patch you will be able to bring all the contents of an
existing .sch file into the currently opened schematic document. This
may be useful to reuse components from one sheet to another, specially
graphical components.

The feature has been added to File -> Append Schematic. It will import
the library cache of the appended file in case it contains non standard
components, and it's also checked to import hierarchical components

Make me know your opinion about the feature or any comments you have on
the patch.


After a first trial, I am thinking the user should be warned about some issues, due to the fact this import cannot be undone: 1 - before adding a schematic inside a non void sheet (the import will put new components and wire over the existing components) . 2 - because it can change the hierarchy ( if the imported scheet has subsheets with filenames already existing in the hierarchy). (see for instance warning messages when modifying the filename of a sub-sheet, especially in a complex hierarchy).

I also noticed the import does not import the subsheets inside the imported sheet, if the corresponding schematic files are not in the working directory. Pay attention to hierarchies in Eeschema, especially complex hierarchies: they can create very tricky problems,
and an import can create complex hierarchies.

Also, keep in mind Eeschema is not protected against infinite loops in a hierarchy (i.e. inserting in a subsheet iside a given sheet the sheet itself, which is easy when importing a schematic.).

Jean-Pierre CHARRAS

Follow ups