Source

PCBmodE / pcbmode.py

Diff from to

pcbmode.py

 import utils.svg as svg 
 import utils.gerber as gerber
 import utils.footprint as footprint 
-import utils.routing as routing
+import utils.extract as extract
 import utils.excellon as excellon
 
 
+
+
+
 def setup_commandline_arguments(pcbmode_version):
     """
     Sets up the commandline arguments form and variables
                       action='store_true', dest='bom', default=False,
                       help='Create a BOM')
      
-    argp.add_argument('-r', '--extract-routing',
-                      action='store_true', dest='routing', default=False,
-                      help="Extract routing from the 'copper' layer of an SVG file")
+    argp.add_argument('-e', '--extract-from-svg',
+                      action='store_true', dest='extract', default=False,
+                      help="Extract routing and component placement from the design's SVG")
      
     argp.add_argument('-fab', '--fab', nargs='?',
                       dest='fab', default=False,
     utils.create_dir(build_dir)
 
     # extract routing from input SVG file
-    if cmdline_args.routing is True:
-        print "-- extracting routing"
-        routing.extract_routing(cfg)
+    if cmdline_args.extract is True:
+        print "-- extracting routing and placement"
+        extract.extract_from_svg(cfg)
 
     # make the board
     if cmdline_args.make is True: