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

Re: gEDA-dev: Patch for saving footprints



Am Mittwoch, 6. Juni 2007 21.34:17 schrieb Christian Riggenbach:
> good day
>
> i submitted about two weeks ago a patch to save the footprints. i don't
> wan't to hurry, but there are sure others who wan't to save their
> footprints.
>
> the id of the patch is 1726201 and the link
> http://sourceforge.net/tracker/index.php?func=detail&aid=1726201&group_id=7
>3743&atid=538813
>
> thanks
>
> Christian Riggenbach
>
>
> _______________________________________________
> geda-dev mailing list
> geda-dev@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

hi list

a little update, because my patch doesn't work anylonger right. this patch 
created against the cvs from 20070607.


greets

Christian Riggenbach

SNIP >>>

Index: src/action.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/action.c,v
retrieving revision 1.108
diff -u -r1.108 action.c
--- src/action.c        21 Apr 2007 21:21:55 -0000      1.108
+++ src/action.c        8 Jun 2007 16:05:48 -0000
@@ -5280,7 +5280,8 @@

 static const char saveto_syntax[] =
   "SaveTo(Layout|LayoutAs,filename)\n"
-  "SaveTo(AllConnections|AllUnusedPins|ElementConnections,filename)";
+  "SaveTo(AllConnections|AllUnusedPins|ElementConnections,filename)\n"
+  "SaveTo(PasteBuffer,filename";

 static const char saveto_help[] = "Saves data to a file.";

@@ -5303,6 +5304,9 @@
 @item ElementConnections
 Save connections to the element at the cursor to a file.

+@item PasteBuffer
+Save the content of the active Buffer to a file. This is the graphical way to 
create a footprint.
+
 @end table

 %end-doc */
@@ -5312,9 +5316,12 @@
 {
   char *function;
   char *name;
+  int  result;
+

   function = argv[0];
   name = argv[1];
+
   if (argc != 2)
     AFAIL (saveto);

@@ -5378,6 +5385,12 @@
       return 0;
     }

+  if (strcasecmp (function, "PasteBuffer") == 0)
+    {
+      result = SaveBufferElements (name);
+      return result;
+    }
+
   AFAIL (saveto);
 }

<<<SNIP


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