6
6
# Project: KiBot (formerly KiPlot)
7
7
# Adapted from: https://github.com/johnbeard/kiplot
8
8
from pcbnew import (PLOT_FORMAT_GERBER , FromMM , ToMM )
9
+ from .gs import GS
9
10
from .out_any_layer import (AnyLayer , AnyLayerOptions )
10
11
from .error import KiPlotConfigurationError
11
12
from .macros import macros , document , output_class # noqa: F401
12
13
13
14
14
15
class GerberOptions (AnyLayerOptions ):
15
16
def __init__ (self ):
16
- super ().__init__ ()
17
- self ._plot_format = PLOT_FORMAT_GERBER
18
17
with document :
19
18
self .use_aux_axis_as_origin = False
20
19
""" use the auxiliar axis as origin for coordinates """
@@ -29,12 +28,14 @@ def __init__(self):
29
28
self .create_gerber_job_file = True
30
29
""" creates a file with information about all the generated gerbers.
31
30
You can use it in gerbview to load all gerbers at once """
32
- self .gerber_job_file = '%f-%i.%x'
31
+ self .gerber_job_file = GS . def_global_output
33
32
""" name for the gerber job file (%i='job', %x='gbrjob') """
34
33
self .use_gerber_x2_attributes = True
35
34
""" use the extended X2 format """
36
35
self .use_gerber_net_attributes = True
37
36
""" include netlist metadata """
37
+ super ().__init__ ()
38
+ self ._plot_format = PLOT_FORMAT_GERBER
38
39
39
40
@property
40
41
def gerber_precision (self ):
0 commit comments