gEDA Schematic to Symbol Generator

Bug #698670 reported by atan102912
This bug affects 4 people
Affects Status Importance Assigned to Milestone

Bug Description

The primary function of this program (geda_sch2sym.bsh) is to generate a symbol from a given schematic. In order to do this, it performs two main steps:

1. uses data from a schematic file (*.sch) to create an I/O ports list (*_IO_ports.ini)

2. uses data from an I/O ports list (*_IO_ports.ini) to create a symbol file (*.sym)

Users may choose to perform a single step individually (option 1 or option 2) or perform both steps simultaneously (option 3).

Option 1: sch-->ini
Option 2: ini-->sym

Option 3: sch-->sym

The user is able to configure the symbol default settings in an initialization file (*.ini). Options 1 and 3 require an initialization file (geda_sch2sym.ini) to be located the directory folder containing the schematic file.

Option 1: Create an I/O ports list ini file from a schematic file
(outputs anyname_IO_ports.ini)

   [program path]geda_sch2sym.bsh -p [input path]anyname.sch

Option 2: Create a symbol file from an I/O ports list ini file
(outputs anyname.sym)

   [program path]geda_sch2sym.bsh -t [input path]anyname_IO_ports.ini

Option 3: Create a symbol file from a schematic file
(outputs anyname_IO_ports.ini and anyname.sym)

   [program path]geda_sch2sym.bsh -s [input path]anyname.sch

Revision history for this message
atan102912 (atan102912) wrote :
Revision history for this message
Krzysztof Kościuszkiewicz (k-kosciuszkiewicz) wrote :

Requested few times on the mailing list, worth reviewing & looking at including in distribution.

description: updated
Changed in geda:
importance: Undecided → Wishlist
tags: added: utilities
Revision history for this message
andyj144 (andyj144) wrote :

Is there a reason for doing this as a script rather than integrating the functionality directly into gschem? I'd like to see a menu item called "symbolize", or something similar, that pops up an options dialog, and then creates a symbol from the current sheet based on the selected options and opens the new *.sym file. Whether or not the ports list is saved could be an option in the dialog box. If there is support for that I would be interested in working on it.

Revision history for this message
KaiMartin (kmk-familieknaak) wrote :

@andyj144: A menu item to produce a subsheet symbol from a schematic would be a huge step towards better usability when working with hierarchy. An even more advanced feature would be a subsheet wizard that generates a symbol and a subsheet schematic file populated with the necessary port symbols in a single sweep. I am just a user, not a dev. So my support is just a cheer.

BTW, interpretation of quotation marks by bash seems to have changed slightly since 2007. The script puts regular expressions on the right side of binary operators in quotation marks (e.g. $line =~ "^\#.*" ). This caused the test to fail even when it should succeed. The script worked fine after I removed the quotation marks from all regexp tests.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers