[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gschem saving symbols



    The plan is to add a 'Save symbol instance as...' to the right-click
    menu.  It will open the file chooser in the directory of the original
    symbol and load file name from device attribute.
    Saving a schematic uses f_save in libgeda, I am adding a f_save_symbol.
     First I loop selected objects stopping at the first complex obj.  Then
    get the text of the symbol with o_save_objects(toplevel,
    s_object->complex->prim_objs, 0);
    This returns almost the text needed to create the symbol file.  The
    position of all the objects in the symbol are big numbers for the
    position they had in the schematic.  Is there a reason to make these
    numbers small near the origin like in the original symbol file?
    -Josh Jordan
    --- On Fri, 6/17/11, Steven Michalske <smichalske@xxxxxxxxx> wrote:

      From: Steven Michalske <smichalske@xxxxxxxxx>
      Subject: Re: gEDA-user: gschem saving symbols
      To: "gEDA user mailing list" <geda-user@xxxxxxxxxxxxxx>
      Date: Friday, June 17, 2011, 12:48 AM

    On Jun 16, 2011, at 9:37 PM, Colin D Bennett <[1]colin@xxxxxxxxxxx>
    wrote:
    > On Thu, 16 Jun 2011 20:55:57 -0700 (PDT)
    > Josh Jordan <[2]outerspaceman81@xxxxxxxxx> wrote:
    >
    >> I could implement a save-symbol-as capability.  Can anyone familiar
    >> with gschem code outline a 'right' way to this?  Should I add
    another
    >> option to Hierarchy "down modified symbol" and change the other to
    >> "down original symbol"?  Or would it be better to add a 'save symbol
    >> as' function to the right-click menu that operates on selected
    >> objects?  Should I try not to change libgeda? Thanks,Josh Jordan
    >
    > Maybe it is useful to make the distinction between a _symbol_, and
    the
    > _instance_ of that symbol in your schematic to which you have
    attached
    > new attributes.  (I think these are the terms I've heard the gschem
    > devs use...)
    >
    > Then you could have a âve Symbol Instance As...âo create a new
    > symbol file on disk containing the original symbol with your
    > modifications applied.
    >
    +1
    > Regards,
    > Colin
    >
    >
    > _______________________________________________
    > geda-user mailing list
    > [3]geda-user@xxxxxxxxxxxxxx
    > [4]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
    _______________________________________________
    geda-user mailing list
    [5]geda-user@xxxxxxxxxxxxxx
    [6]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

References

   1. file://localhost/mc/compose?to=colin@xxxxxxxxxxx
   2. file://localhost/mc/compose?to=outerspaceman81@xxxxxxxxx
   3. file://localhost/mc/compose?to=geda-user@xxxxxxxxxxxxxx
   4. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
   5. file://localhost/mc/compose?to=geda-user@xxxxxxxxxxxxxx
   6. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user